"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8377],{86108:(e,t,n)=>{n.r(t),n.d(t,{AddonManagerProvider:()=>bd,AggregationFunction:()=>c3,AlignCenter:()=>bW,AlignLeft:()=>bG,AlignRight:()=>bU,Annotation:()=>ca,AnnotationConfig:()=>co,AnnotationType:()=>cl,Annotations:()=>cs,AppearanceConfig:()=>c2,AppliedBrandKit:()=>cx,ArrowAnnotation:()=>u8,ArrowAnnotationAttributes:()=>u4,ArrowAnnotationConfig:()=>u6,ArrowDownIcon:()=>bD,ArrowDuoToneIcon:()=>CV,ArrowLeftIcon:()=>bE,ArrowLineStyle:()=>u9,ArrowRightIcon:()=>bH,ArrowSwapIcon:()=>bV,ArrowThickness:()=>u7,ArrowUpIcon:()=>bI,ArrowheadStyle:()=>u3,AverageDuoToneIcon:()=>CM,AverageLineIcon:()=>Ck,AxesIcon:()=>Cj,AxisLabelsMode:()=>dP,BAR_VIZ_TYPES:()=>dh,BASE_FONT_SIZE:()=>sQ,BarChartAltIcon:()=>Cv,BaseEditorContainer:()=>kv,BaseEditorContent:()=>kt,BasicFilterConfig:()=>dn,BasicFilterOperator:()=>de,BasicFilterValue:()=>dt,BinIcon:()=>bw,BlockType:()=>u,BoldIcon:()=>bF,BorderStyleName:()=>cQ,BoxIcon:()=>CA,BrandKitTheme:()=>cF,BrushIcon:()=>CD,Button:()=>vG,CHART_PLOT_ID:()=>xW,COLUMN_VIZ_TYPES:()=>dg,CalendarIcon:()=>Ce,CanvasCssVariables:()=>jk,Caption:()=>mA,CaptionEditor:()=>kF,CaptionEditorControlled:()=>kY,CaptionEditorControlledProvider:()=>kR,CaretDownIcon:()=>bJ,CaretLeftIcon:()=>Cp,CaretRightIcon:()=>Ch,CaretUpIcon:()=>bq,Chart:()=>IC,ChartBorderColor:()=>c1,ChartBorderStroke:()=>cq,ChartBorderStrokeWidth:()=>cJ,ChartBorderStyle:()=>c0,ChartBorderType:()=>c$,ChartBrandKitConfig:()=>cy,ChartInfoProvider:()=>SI,ChartTextScale:()=>cY,ChartThemePalette:()=>cz,ChartThemePreset:()=>cR,ChartTitleEditor:()=>OL,CheckIcon:()=>bY,ChronologicalDateManager:()=>uf,ClockIcon:()=>b8,ColorDropdown:()=>jq,ColorInput:()=>jY,ColorPaletteIcon:()=>jL,ColorSelector:()=>wR,ComboPlotAxisCount:()=>dL,ComboPlotType:()=>dx,ComparisonFilterOperator:()=>c6,Container:()=>mv,Content:()=>mM,CrossIcon:()=>b$,CurrencyConfig:()=>dI,CurrencyDollarIcon:()=>Ct,CurrencyEuroIcon:()=>Cn,CurrencyIso:()=>gj,CurrencyPoundIcon:()=>Cr,CurveType:()=>dy,CustomColorSchema:()=>dZ,CustomPaletteCatalogSchema:()=>d_,CustomPaletteSchema:()=>dX,CustomPaletteTheme:()=>cB,CustomPowerUp:()=>dC,CustomTheme:()=>cV,DEFAULT_AREA_STACKED_CHART:()=>hs,DEFAULT_BAR_CHART:()=>hm,DEFAULT_BAR_CHART_100_STACKED:()=>hx,DEFAULT_BAR_CHART_STACKED:()=>hy,DEFAULT_BUBBLE_CHART:()=>hc,DEFAULT_CHART_SIZE:()=>d6,DEFAULT_COLUMN_CHART:()=>hh,DEFAULT_COLUMN_CHART_100_STACKED:()=>hf,DEFAULT_COLUMN_CHART_STACKED:()=>hg,DEFAULT_COMBO_CHART_GROUPED_BARS:()=>hC,DEFAULT_DONUT_CHART:()=>hl,DEFAULT_FUNNEL_CHART:()=>hb,DEFAULT_HEATMAP:()=>hA,DEFAULT_LABEL_FORMATTER:()=>ug,DEFAULT_LINE_CHART:()=>ha,DEFAULT_LOCALE:()=>fX,DEFAULT_MEKKO_CHART:()=>hd,DEFAULT_PIE_CHART:()=>ho,DEFAULT_SCATTER_CHART:()=>hu,DEFAULT_SPRING_TRANSITION:()=>f_,DEFAULT_TABLE:()=>hw,DEFAULT_TWEEN_TRANSITION:()=>fQ,DEFAULT_VIZ_LOCALE:()=>dk,DEFAULT_VIZ_PALETTE:()=>m7,DEFAULT_WATERFALL_CHART:()=>hp,DataType:()=>gA,DataTypeConfig:()=>dF,DataView:()=>dd,DataViewProperty:()=>dl,DatasetConfig:()=>dG,DateConfig:()=>dH,DateDataType:()=>dE,DecimalPlaces:()=>dW,DefaultChartFont:()=>cN,DefaultHighlightStyle:()=>cW,DescendantContext:()=>j1,DescendantProvider:()=>j2,DifferenceArrowAnnotation:()=>ci,DifferenceArrowAnnotationAttributes:()=>cn,DifferenceArrowAnnotationConfig:()=>cr,DifferenceArrowSize:()=>ct,DifferenceArrowType:()=>ce,DifferenceArrowsDuoToneIcon:()=>CF,EMPTY_CHART:()=>hi,ErrorSeverity:()=>gw,FORMATTED_NULL_VALUE:()=>up,FORMATTING_NOT_AVAILABLE:()=>uh,FillType:()=>cd,FilterConfig:()=>di,FontFamily:()=>cK,FontFinelinerIcon:()=>b7,FontFreshIcon:()=>b0,FontHandwrittenIcon:()=>b3,FontListSchema:()=>cZ,FontModernIcon:()=>b2,FontTechnicalIcon:()=>b5,FontTimelessIcon:()=>b1,FontsProvider:()=>mt,Footer:()=>mT,GRAPHY_UNKNOWN_ERROR_CODE:()=>pa,GRAPHY_VIZ_COLORS:()=>gt,GoalDuoToneIcon:()=>CP,GoogleSlidesIcon:()=>Ci,GrabHandleIcon:()=>bT,Graph:()=>Fa,GraphFont:()=>c_,GraphFontPreset:()=>cU,GraphProvider:()=>HI,GraphTheme:()=>yc,GraphThemeAnnotationColorIds:()=>yu,GraphThemeCanvasColor:()=>yl,GraphThemeColorScheme:()=>ys,GraphThemeOverrides:()=>yd,GraphThemeValues:()=>ya,GraphTitle:()=>Vu,GraphyChartFontList:()=>pr,GraphyDefaultFontList:()=>pn,GraphyEditorFontList:()=>pi,GraphyError:()=>ps,GraphyGradientBorderStyle:()=>cv,GraphyPalette:()=>cA,GraphyPresetFontFamilies:()=>pt,GraphySolidBorderStyle:()=>cj,GraphyVizColor:()=>cC,GridLinesIcon:()=>Cf,GroupByConfig:()=>da,HashIcon:()=>b4,Heading:()=>mO,HeadlineMetric:()=>dv,HeadlineMetricComparisonValue:()=>dj,HeadlineMetricSize:()=>dA,HighlightAnnotation:()=>u1,HighlightAnnotationConfig:()=>u$,HighlightDuoToneIcon:()=>CB,HighlightIcon:()=>CH,HighlightStyle:()=>cG,HighlightType:()=>uq,Hint:()=>ju,Input:()=>wy,InputWithLabel:()=>wb,InstagramIcon:()=>Co,InvisibleIcon:()=>bL,ItalicIcon:()=>bB,Item:()=>mL,JSONContent:()=>uY,JumboLayout:()=>mR,LEGEND_SYMBOL_SIZE:()=>us,LIGHTNESS_CONFIG:()=>h6,Label:()=>wx,LabelIcon:()=>Cx,LandscapeIcon:()=>Cl,LeanEditor:()=>Ol,LeanEditorProvider:()=>Oo,LegendPosition:()=>dS,LegendSymbol:()=>ue,LineChartAltIcon:()=>Cm,LineChartSmoothIcon:()=>Cy,LineThicknessIcon:()=>Cb,LineType:()=>cc,LinkIcon:()=>bR,LinkedInIcon:()=>Ca,Menu:()=>An,MenuAppearanceProvider:()=>j9,MenuGroup:()=>Ao,MenuHeader:()=>AV,MenuHeaderButton:()=>Az,MenuHeaderSkeleton:()=>AR,MenuItem:()=>AW,MenuItemDivider:()=>AU,MenuItemSkeleton:()=>AN,MenuSelect:()=>A2,MinusIcon:()=>bO,MonoPalette:()=>cM,MonoThemePreset:()=>cT,MoonIcon:()=>CE,NeonPalette:()=>cD,NeonThemePreset:()=>cE,NumberAbbreviation:()=>dU,NumberFormat:()=>dN,NumericFilterOperator:()=>c9,OtherDataTypeConfig:()=>dV,PASTEL_VIZ_COLORS:()=>gn,PIE_ENTRY_TRANSITION:()=>fJ,PIE_VIZ_TYPES:()=>dm,POINT_VIZ_TYPES:()=>df,PaletteIcon:()=>CO,PastelPalette:()=>cP,PastelSolidBorderStyle:()=>cS,PastelVizColor:()=>ck,PercentIcon:()=>b6,PieChart:()=>IP,PieTotalPosition:()=>dM,PlusIcon:()=>b_,PointIcon:()=>CC,Popover:()=>jg,Popper:()=>jd,Portal:()=>md,PortalProvider:()=>bs,PortalThemeProvider:()=>mu,PortraitIcon:()=>Cs,PresetPowerUp:()=>db,Property:()=>dR,RawData:()=>uz,RawDataCell:()=>uF,RawDataRow:()=>uB,ReadonlyTextAnnotationRenderer:()=>OS,ReportEditor:()=>MU,ReportEditorContext:()=>MD,ReportEditorProvider:()=>MY,ResolveCssColorContext:()=>bN,RocketIcon:()=>Cw,RollingDateFilter:()=>dY,RollingDateFilterConfig:()=>dr,RollingDateFilterOperator:()=>c8,Row:()=>Ay,RowButton:()=>Ax,RowIcon:()=>Ab,RowInput:()=>AC,RowItem:()=>Av,RowLabel:()=>Aj,RowTitle:()=>AI,RulerIcon:()=>Cd,SERIES_CONFIG_KEYS:()=>gp,SOURCE_PARAGRAPH_MATCH:()=>kK,Select:()=>wu,SelectControl:()=>ws,SeriesColorDot:()=>wv,SeriesConfig:()=>cp,SeriesConfigKeys:()=>cg,SeriesConfigMap:()=>ch,ShapeAnnotation:()=>uK,ShapeAnnotationConfig:()=>uN,ShapeAnnotationType:()=>uU,SkeletonRowLabel:()=>AM,Slider:()=>jb,SortByConfig:()=>du,SortByDirection:()=>ds,SortedBarsIcon:()=>Cg,SpinnerIcon:()=>bP,SquareDuoToneIcon:()=>Cz,StickerAnnotation:()=>u_,StickerAnnotationConfig:()=>uX,StickerAnnotationId:()=>uZ,StringFilterOperator:()=>c4,StyledPortalContainer:()=>mc,StylesReset:()=>mp,SummaryEditor:()=>Mq,SunIcon:()=>CI,SwatchbookIcon:()=>CT,TABLE_PLOT_ID:()=>IT,TEXT_NODE_CLASS_NAME:()=>kr,TRANSITION_DURATION:()=>sY,TeamBrandKit:()=>cf,TeamBrandKits:()=>cm,TextAnnotation:()=>u5,TextAnnotationBackgroundColorStyle:()=>u0,TextAnnotationConfig:()=>u2,TextAnnotationEditor:()=>Ow,TextColorIcon:()=>bZ,TextDuoToneIcon:()=>CR,TextIcon:()=>b9,TextStyle:()=>cX,ThemeName:()=>cb,ThemeProvider:()=>ms,ThicknessIcon:()=>bX,TicksType:()=>a,TiktokIcon:()=>Cu,TimeUnit:()=>c7,Tooltip:()=>ja,TooltipAnnotation:()=>uJ,TooltipAnnotationConfig:()=>uQ,TreatEmptyValues:()=>dT,TrendDuoToneIcon:()=>CL,TrendIcon:()=>CS,TrendTag:()=>ud,TrendType:()=>dO,UnderlineIcon:()=>bz,UndoIcon:()=>bQ,VIZ_TYPE_LIMITS:()=>d8,VisibleIcon:()=>bM,VisualisationConfig:()=>dD,VisualizationType:()=>dp,VizColor:()=>cu,VizLocale:()=>dw,VizTable:()=>IG,WATERFALL_SERIES_CONFIG_KEYS:()=>gh,WATERFALL_TOTAL_ID:()=>pc,WaterfallColor:()=>cH,Weekday:()=>dc,XIcon:()=>Cc,addonZIndices:()=>f6,applyNumberAbbreviation:()=>uv,applyTintAdjustment:()=>h8,breakpoints:()=>sq,buildChartCaptionDocument:()=>OB,buildChartTitleDocument:()=>pU,calculateTrend:()=>fZ,castToBoolean:()=>fo,castToDate:()=>fi,castToNumber:()=>fr,castToString:()=>fn,checkeredBackground:()=>m3,color:()=>uA,colorVariableName:()=>uj,columnIndexToPropertyKey:()=>uD,contentSpecToSupportedContentSpec:()=>Os,createEmptyProperty:()=>uI,createGradientFromColor:()=>ge,createNonNullableContextHook:()=>uE,darkModeOnly:()=>uO,darkenCss:()=>uk,dataTypeToRollingFilterOptions:()=>d9,decodeValue:()=>ym,default100StackedBarConfig:()=>p0,defaultAnnotations:()=>He,defaultAppearanceConfig:()=>Ht,defaultBubbleChartConfig:()=>ht,defaultCharts:()=>hk,defaultComboChartConfig:()=>p4,defaultData:()=>pN,defaultDatasetConfig:()=>pK,defaultDonutChartConfig:()=>p7,defaultFunnelChartConfig:()=>p9,defaultGroupedBarConfig:()=>p$,defaultGroupedColumnConfig:()=>p2,defaultHeatmapConfig:()=>p6,defaultLineChartConfig:()=>p5,defaultNumberFormat:()=>Hn,defaultPieChartConfig:()=>p3,defaultScatterChartConfig:()=>he,defaultStackedBarConfig:()=>p1,defaultTableConfig:()=>p8,defaultVisualisationConfig:()=>hr,defaultWaterfallChartConfig:()=>hn,desaturateCss:()=>uL,device:()=>yo,elevation:()=>sF,emptyChartTitleContent:()=>OE,emptyDocument:()=>kG,emptyReportContent:()=>MN,estimateDataPointCount:()=>hL,findCaptionSource:()=>kX,fontFamilies:()=>sN,fontSizes:()=>sK,fontWeights:()=>sd,formatBoolean:()=>fl,formatBooleanTickLabel:()=>fs,formatBooleanValue:()=>fa,formatCurrencyTickLabel:()=>fg,formatCurrencyValue:()=>fm,formatDateTickLabel:()=>fV,formatDateValue:()=>fb,formatDatetimeValue:()=>fx,formatDayMonthTickLabel:()=>fF,formatDayMonthValue:()=>fC,formatDecimalTickLabel:()=>fh,formatDecimalValue:()=>fv,formatDifferenceLabel:()=>fN,formatDuration:()=>fk,formatDurationTickLabel:()=>fB,formatDurationValue:()=>fS,formatIntegerTickLabel:()=>fz,formatIntegerValue:()=>fP,formatMonthTickLabel:()=>fR,formatMonthValue:()=>fL,formatMonthYearValue:()=>fM,formatPercentageTickLabel:()=>fY,formatPercentageValue:()=>fO,formatQuarterValue:()=>fT,formatTextTickLabel:()=>fG,formatTextValue:()=>fD,formatTooltipDateValue:()=>fW,formatTooltipDatetimeValue:()=>fU,formatTooltipValue:()=>IU,formatWeeklyDateRangeValue:()=>fI,formatWeeklyDateRangeWithYearValue:()=>fE,formatYearValue:()=>fH,generateDataPointId:()=>pd,generateMenuItemId:()=>j5,generateMonoPalette:()=>ye,getBaseExtensions:()=>kS,getCaptionAsPlainText:()=>kN,getChartBorderStyles:()=>gb,getComputedDataView:()=>Hf,getComputedProperties:()=>Hu,getCustomBorderStyle:()=>gm,getDataTypeCategory:()=>d0,getDateFormatMatch:()=>pD,getDefaultColorForSeriesConfigKey:()=>gf,getDefaultIntl:()=>fK,getDefaultSwatchStyles:()=>ph,getEmptyDocumentPerContentSpec:()=>Oc,getGraphBackgroundColor:()=>HT,getLabelForWaterfallSeriesConfigKey:()=>gy,getPresetPalette:()=>m4,getResolvedVisualisationConfig:()=>pq,getScrollParent:()=>pg,getSupportedDateFormats:()=>pv,getSupportedWeeklyDateRangeFormats:()=>pj,getVersion:()=>e1.HF,getVizPalette:()=>m9,getWeeklyDateRangeFormatMatch:()=>pB,gradientBorder:()=>sB,graphyDarkTheme:()=>h3,graphyLightTheme:()=>h4,hasEmptyTextNode:()=>Oz,hasOwnProperty:()=>pz,hasOwnStringProperty:()=>pR,highlightEditorAddon:()=>Pq,inferDataType:()=>pY,isAnnotationWithDataPoint:()=>um,isBooleanDataType:()=>dJ,isCategoricalSingleAxisChart:()=>hE,isCellEmpty:()=>pG,isChartTitleEmpty:()=>OH,isChartTooExpensive:()=>hP,isComputedPieChartConfig:()=>hI,isComputedXYChartConfig:()=>hD,isCurrencyDataTypeConfig:()=>dz,isDatasetEmpty:()=>pW,isDatasetPristine:()=>hS,isDateDataType:()=>dq,isDateDataTypeConfig:()=>dB,isDateDataTypeWithoutYear:()=>d$,isDifferenceArrowAnnotation:()=>ux,isEmptyDocument:()=>kU,isGraphyError:()=>pu,isHighlightAnnotation:()=>uy,isNonEmptyArray:()=>dK,isNonNullValue:()=>c5,isNumericDataType:()=>d1,isPieAestheticMappings:()=>uV,isRowEmpty:()=>hM,isRowNotEmpty:()=>hO,isTextDataType:()=>dQ,isTooltipAnnotation:()=>ub,isTouchDevice:()=>hT,isValidReportContent:()=>MR,isValidRollingFilterForDataType:()=>d4,isValidTimeUnitForDataType:()=>hV,isWithinViewport:()=>hF,isXYAestheticMappings:()=>uH,lightModeOnly:()=>uT,lightenCss:()=>uS,lineHeights:()=>sZ,mixCss:()=>uP,modifyChartTitleDocument:()=>OU,parseChartCaptionDocument:()=>OW,parseChartTitleDocument:()=>OY,parseDataPointId:()=>pp,pointOnCircle:()=>hB,radii:()=>sV,rawDataToChartData:()=>Hk,remMultiplier:()=>sR,remToPx:()=>hz,remapAnnotations:()=>hR,removeSourceFromCaption:()=>kZ,resetFontSize:()=>hY,resolveCssColor:()=>H6,resolveFontFamily:()=>po,sendableSteps:()=>e1._X,skeleton:()=>hW,space:()=>hK,spaceBaseRem:()=>sz,spaceToPx:()=>hN,stickers:()=>Tr,stringToUTCDate:()=>Hr,subpixelRound:()=>hZ,summaryEditorExtensionStyles:()=>M_,supportsHeadlineMetrics:()=>EG,svgSkeleton:()=>hU,textEditorContentBuilder:()=>OK,themeToVariables:()=>uM,timeUnitToDataType:()=>hX,titleDocumentToTitle:()=>OG,toPlainText:()=>OR,transformToTextStyle:()=>pl,transitions:()=>sG,transparentizeCss:()=>uw,transposeData:()=>hJ,trimEmptyProperties:()=>h_,trimEmptyRows:()=>hQ,truncate:()=>hq,typography:()=>m5,typographyFontWeights:()=>sX,typographyTextDecoration:()=>s_,useAddonManager:()=>bc,useBaseEditor:()=>kk,useBreakpoint:()=>h0,useCaptionEditorControlled:()=>kz,useChartBorderStyles:()=>gY,useChartInfo:()=>SD,useComponentWillUnmount:()=>gW,useDebouncedCallback:()=>gU,useDescendant:()=>AF,useDescendants:()=>j0,useDrag:()=>gN,useEditable:()=>g_,useFonts:()=>me,useGetChartTitleEditor:()=>OI,useGradientVariant:()=>gq,useGraphState:()=>gz,useGraphStateContext:()=>gB,useHasFocus:()=>gK,useHasMouseOver:()=>g$,useIsInEmbed:()=>g0,useIsXGoalSupported:()=>g5,useLeanEditor:()=>Oi,useMenuAppearance:()=>j7,useMenuItem:()=>AB,useMergeRefs:()=>g3,useOnClickAway:()=>g7,useOptionalGraphState:()=>gR,useParentTheme:()=>ml,usePrevious:()=>g9,useReportEditor:()=>MI,useResizeObserver:()=>g6,useResponsiveStyles:()=>H1,useSafeGraphLayoutContext:()=>H_,useSeriesColorsOptions:()=>H8,useStatefulRef:()=>gG,useTheme:()=>ma,useTooltip:()=>mD,useTooltipPointerCoords:()=>mY,useUpdateGraphConfig:()=>Hx,vizTypography:()=>sH,zIndices:()=>sJ});var r,i,o,l,a,s,u,c,d,p=n(85966),h=n(34774),g=n(6029),f=n(23611),m=n(53120),y=n(5392),x=n(20880),b=n(47110),C=n(89015),v=n(77120),j=n(51136),A=n(97845),w=n(55821),k=n(17406),S=n(72265),P=n(51692),L=n(54440),M=n(84114),O=n(55729),T=n(29766),D=n(6663),I=n(25690),E=n(57513),H=n(93892),V=n(55049),F=n(39378),B=n(65982),z=n(31812),R=n(43938),Y=n(947),G=n(56760),W=n(17642),U=n(63418),N=n(65230),K=n(66082),Z=n(87409),X=n(26613),_=n(69604),Q=n(45644),J=n(93291),q=n(86640),$=n(41777),ee=n(43740),et=n(16930),en=n(15905),er=n(10095),ei=n(29123),eo=n(48564),el=n(75570),ea=n(17724),es=n(91722),eu=n(11692),ec=n(7749),ed=n(7972),ep=n(89581),eh=n(34758),eg=n(98356),ef=n(6237),em=n(73881),ey=n(45863),ex=n(75437),eb=n(17318),eC=n(12323),ev=n(76787),ej=n(3839),eA=n(34818),ew=n(51192),ek=n(9585),eS=n(85294),eP=n(85279),eL=n(7803),eM=n(25960),eO=n(98720),eT=n(77116),eD=n(30174),eI=n(70649),eE=n(37243),eH=n(51589),eV=n(82318),eF=n(55153),eB=n(8476),ez=n(83902),eR=n(99696),eY=n(41885),eG=n(70375),eW=n(91929),eU=n(91892),eN=n(35658),eK=n(58497),eZ=n(30777),eX=n(30669),e_=n(97122),eQ=n(94289),eJ=n(18556),eq=n(74467),e$=n(8272),e1=n(24839),e0=n(69694),e2=n(94558),e5=n(66804),e3=n(43522),e7=n(31989),e9=n(78711),e4=n(68065),e6=n(88039),e8=n(25187),te=n(64952),tt=n(73715),tn=n(36523),tr=n(97109),ti=n(28514),to=n(34302),tl=n(9667);function ta(){let e=(0,p._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n line-height: 1.5;\n"]);return ta=function(){return e},e}function ts(){let e=(0,p._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n"]);return ts=function(){return e},e}function tu(){let e=(0,p._)(["\n font-family: inherit;\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return tu=function(){return e},e}function tc(){let e=(0,p._)(["\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return tc=function(){return e},e}function td(){let e=(0,p._)(["\n font-family: inherit;\n font-size: 1.1em;\n font-weight: ",";\n"]);return td=function(){return e},e}function tp(){let e=(0,p._)(["\n font-size: calc(1.4em * var(--typography-scale));\n line-height: 2;\n font-weight: ",";\n"]);return tp=function(){return e},e}function th(){let e=(0,p._)(["\n font-size: calc(1.2em * var(--typography-scale));\n line-height: 1.3;\n font-weight: ",";\n"]);return th=function(){return e},e}function tg(){let e=(0,p._)(["\n font-size: calc(1.1em * var(--typography-scale));\n font-weight: ",";\n line-height: 1;\n"]);return tg=function(){return e},e}function tf(){let e=(0,p._)(["\n font-size: calc(1.1em * var(--typography-scale));\n font-weight: ",";\n line-height: 1;\n"]);return tf=function(){return e},e}function tm(){let e=(0,p._)(["\n font-size: calc(1.2em * var(--typography-scale));\n font-weight: ",";\n"]);return tm=function(){return e},e}function ty(){let e=(0,p._)(["\n font-size: calc(1.6em * var(--typography-scale));\n font-weight: ",";\n"]);return ty=function(){return e},e}function tx(){let e=(0,p._)(["\n font-size: calc(2em * var(--typography-scale));\n font-weight: ",";\n"]);return tx=function(){return e},e}function tb(){let e=(0,p._)(["\n font-size: calc(1em * var(--typography-scale));\n font-weight: ",";\n"]);return tb=function(){return e},e}function tC(){let e=(0,p._)(["\n font-size: 1.2em;\n line-height: 1.6;\n font-weight: ",";\n"]);return tC=function(){return e},e}function tv(){let e=(0,p._)(["\n font-size: 1em;\n line-height: 1.3;\n font-weight: ",";\n"]);return tv=function(){return e},e}function tj(){let e=(0,p._)(["\n font-size: 1.4em;\n line-height: 2;\n font-weight: ",";\n"]);return tj=function(){return e},e}function tA(){let e=(0,p._)(["\n font-size: 1.2em;\n font-weight: ",";\n"]);return tA=function(){return e},e}function tw(){let e=(0,p._)(["\n font-size: 1.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tw=function(){return e},e}function tk(){let e=(0,p._)(["\n font-size: 2.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tk=function(){return e},e}function tS(){let e=(0,p._)(["\n font-size: 1.2em;\n font-weight: ",";\n line-height: 1;\n"]);return tS=function(){return e},e}function tP(){let e=(0,p._)(["\n font-size: 1.2em;\n"]);return tP=function(){return e},e}function tL(){let e=(0,p._)(["\n font-size: 1.2em;\n"]);return tL=function(){return e},e}function tM(){let e=(0,p._)(["\n font-size: 1em;\n font-weight: ",";\n line-height: 1;\n"]);return tM=function(){return e},e}function tO(){let e=(0,p._)(["\n border: ","px solid transparent;\n border-radius: ",";\n background: "," border-box;\n mask:\n linear-gradient(#fff 0 0) padding-box,\n linear-gradient(#fff 0 0);\n -webkit-mask-composite: xor;\n mask-composite: exclude;\n\n // Fix for Safari bug: gradient border disappears when animating a container that scrolls.\n transform: translateZ(0);\n"]);return tO=function(){return e},e}function tT(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return tT=function(){return e},e}function tD(){let e=(0,p._)(["\n font-size: ",";\n"]);return tD=function(){return e},e}function tI(){let e=(0,p._)(["\n 0% {\n opacity: 0.5;\n }\n\n 50% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0.5;\n }\n"]);return tI=function(){return e},e}function tE(){let e=(0,p._)(["\n background-color: ",";\n animation: "," 1.8s ease-out infinite;\n"]);return tE=function(){return e},e}function tH(){let e=(0,p._)(["\n fill: ",";\n animation: "," 1.8s ease-out infinite;\n"]);return tH=function(){return e},e}function tV(){let e=(0,p._)(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]);return tV=function(){return e},e}function tF(){let e=(0,p._)(["\n display: contents;\n @property --typography-scale {\n syntax: '';\n inherits: true;\n initial-value: 1;\n }\n color-scheme: ",";\n ","\n color: ",";\n"]);return tF=function(){return e},e}function tB(){let e=(0,p._)(["\n --typography-scale: 1;\n ","\n "]);return tB=function(){return e},e}function tz(){let e=(0,p._)(["\n ","\n z-index: ",";\n position: ",";\n display: ",";\n"]);return tz=function(){return e},e}function tR(){let e=(0,p._)(["\n ","\n color: ",";\n font-family: var(--typography-chart-font-family);\n\n [role='toolbar'] {\n --typography-scale: 1;\n }\n"]);return tR=function(){return e},e}function tY(){let e=(0,p._)(["\n pointer-events: none;\n position: fixed;\n top: 0;\n left: 0;\n z-index: ",";\n"]);return tY=function(){return e},e}function tG(){let e=(0,p._)(["\n position: relative;\n max-width: calc(40em * var(--typography-scale));\n display: flex;\n zoom: var(--typography-scale);\n\n > * {\n --typography-scale: 1;\n }\n"]);return tG=function(){return e},e}function tW(){let e=(0,p._)(["\n position: relative;\n background: ",";\n box-shadow: 0 0 0 1.5px ",";\n border-radius: 0.6em;\n"]);return tW=function(){return e},e}function tU(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n"]);return tU=function(){return e},e}function tN(){let e=(0,p._)(["\n padding: 1.2em 1.6em;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n"]);return tN=function(){return e},e}function tK(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return tK=function(){return e},e}function tZ(){let e=(0,p._)(["\n ","\n pointer-events: none;\n position: absolute;\n display: flex;\n color: ",";\n"]);return tZ=function(){return e},e}function tX(){let e=(0,p._)(["\n left: 50%;\n top: 0;\n transform: translate(-50%, -100%) scaleY(-1);\n "]);return tX=function(){return e},e}function t_(){let e=(0,p._)(["\n right: 0;\n top: 50%;\n transform: translate(75%, -50%) rotate(-90deg);\n "]);return t_=function(){return e},e}function tQ(){let e=(0,p._)(["\n left: 50%;\n bottom: 0;\n transform: translate(-50%, 100%);\n "]);return tQ=function(){return e},e}function tJ(){let e=(0,p._)(["\n left: 0;\n top: 50%;\n transform: translate(-75%, -50%) rotate(90deg);\n "]);return tJ=function(){return e},e}function tq(){let e=(0,p._)(["\n ","\n"]);return tq=function(){return e},e}function t$(){let e=(0,p._)(["\n display: flex;\n align-items: baseline;\n flex-wrap: wrap;\n gap: ",";\n color: #bdbacd;\n\n > * {\n ","\n }\n"]);return t$=function(){return e},e}function t1(){let e=(0,p._)(["\n display: flex;\n flex-flow: row;\n gap: ",";\n align-items: center;\n justify-content: space-between;\n\n & + & {\n margin-top: ",";\n }\n"]);return t1=function(){return e},e}function t0(){let e=(0,p._)(["\n flex-shrink: 0;\n"]);return t0=function(){return e},e}function t2(){let e=(0,p._)(["\n ","\n ","\n flex-grow: 1;\n color: ",";\n"]);return t2=function(){return e},e}function t5(){let e=(0,p._)(["\n font-weight: 600;\n color: ",";\n"]);return t5=function(){return e},e}function t3(){let e=(0,p._)(["\n display: flex;\n flex-flow: column;\n min-width: 20em;\n max-width: 30em;\n"]);return t3=function(){return e},e}function t7(){let e=(0,p._)(["\n padding: 1.2em 1.6em 0.8em 1.6em;\n"]);return t7=function(){return e},e}function t9(){let e=(0,p._)(["\n display: flex;\n flex-flow: row;\n gap: ",";\n align-items: center;\n"]);return t9=function(){return e},e}function t4(){let e=(0,p._)(["\n flex-shrink: 0;\n display: flex;\n"]);return t4=function(){return e},e}function t6(){let e=(0,p._)(["\n margin-top: ",";\n"]);return t6=function(){return e},e}function t8(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return t8=function(){return e},e}function ne(){let e=(0,p._)(["\n height: 1em;\n"]);return ne=function(){return e},e}function nt(){let e=(0,p._)(["\n text-decoration: ",";\n "]);return nt=function(){return e},e}function nn(){let e=(0,p._)(["\n font-size: calc("," * var(--typography-scale));\n line-height: ",";\n font-weight: ",";\n ","\n"]);return nn=function(){return e},e}function nr(){let e=(0,p._)(["\n --checkered-background: ",";\n background-image:\n linear-gradient(\n 45deg,\n var(--checkered-background) 25%,\n transparent 25%,\n transparent 75%,\n var(--checkered-background) 75%,\n var(--checkered-background)\n ),\n linear-gradient(\n 45deg,\n var(--checkered-background) 25%,\n transparent 25%,\n transparent 75%,\n var(--checkered-background) 75%,\n var(--checkered-background)\n );\n background-size: ","em ","em;\n background-position:\n 0 0,\n ","em ","em;\n"]);return nr=function(){return e},e}function ni(){let e=(0,p._)(["\n @container chart-container (width <= ",") {\n & {\n --typography-scale: 0.9;\n }\n }\n\n @container chart-container (width <= ",") {\n & {\n --typography-scale: 0.8;\n }\n }\n"]);return ni=function(){return e},e}function no(){let e=(0,p._)(["\n container: chart-container / inline-size;\n // Disable zooming and horizontal panning on touch devices so that it's easier to interact with tooltips.\n touch-action: pan-y;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n @media print {\n width: 100% !important;\n }\n"]);return no=function(){return e},e}function nl(){let e=(0,p._)(["\n ","\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n gap: 0.8em;\n margin-bottom: 1em;\n min-height: 0;\n max-height: 80%;\n overflow-y: auto;\n"]);return nl=function(){return e},e}function na(){let e=(0,p._)(["\n flex: 0 0 auto;\n"]);return na=function(){return e},e}function ns(){let e=(0,p._)(["\n ","\n flex: 1;\n min-height: 0;\n position: relative;\n display: flex;\n flex-direction: column;\n\n > * {\n flex-grow: 1;\n }\n"]);return ns=function(){return e},e}function nu(){let e=(0,p._)(["\n flex: 0 0 auto;\n"]);return nu=function(){return e},e}function nc(){let e=(0,p._)(["\n ","\n flex: 0 0 auto;\n"]);return nc=function(){return e},e}function nd(){let e=(0,p._)(["\n position: absolute;\n z-index: ",";\n left: 0;\n top: 0;\n pointer-events: none;\n > * {\n pointer-events: auto;\n }\n"]);return nd=function(){return e},e}function np(){let e=(0,p._)(["\n --typography-scale: 1;\n font-family: ",";\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: ",";\n pointer-events: none;\n > * {\n pointer-events: ",";\n }\n"]);return np=function(){return e},e}function nh(){let e=(0,p._)(["\n width: ",";\n height: ",";\n z-index: ",";\n position: relative;\n"]);return nh=function(){return e},e}function ng(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: translateY(2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"]);return ng=function(){return e},e}function nf(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: translateX(-2px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n"]);return nf=function(){return e},e}function nm(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"]);return nm=function(){return e},e}function ny(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: translateX(2px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n"]);return ny=function(){return e},e}function nx(){let e=(0,p._)(["\n ","\n user-select: none;\n z-index: ",";\n min-width: ",";\n background-color: ",";\n padding: ",";\n box-shadow: ",";\n animation-duration: 400ms;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n border-radius: ",";\n\n &[data-side='top'] {\n animation: "," ",";\n }\n\n &[data-side='right'] {\n animation: "," ",";\n }\n\n &[data-side='bottom'] {\n animation: "," ",";\n }\n\n &[data-side='left'] {\n animation: "," ",";\n }\n"]);return nx=function(){return e},e}function nb(){let e=(0,p._)(["\n flex-shrink: 0;\n color: ",";\n\n .invertedFill {\n "," {\n fill: ",";\n }\n\n "," {\n fill: ",";\n }\n }\n\n .invertedStroke {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: ",";\n }\n }\n"]);return nb=function(){return e},e}function nC(){let e=(0,p._)(["\n to {\n transform: rotate(360deg);\n }\n"]);return nC=function(){return e},e}function nv(){let e=(0,p._)(["\n animation: "," 0.85s linear infinite;\n animation-fill-mode: none;\n display: inline-flex;\n"]);return nv=function(){return e},e}function nj(){let e=(0,p._)(["\n width: ",";\n height: ",";\n display: flex;\n color: ",";\n outline: 3px solid ",";\n background: ",";\n cursor: pointer;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n transition: transform 0.25s linear;\n transform: ",";\n filter: drop-shadow(0px 4px 4px rgba(14, 14, 52, 0.08)) drop-shadow(0px 0px 4px rgba(15, 15, 24, 0.12));\n"]);return nj=function(){return e},e}function nA(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n transform: ",";\n transition: transform 0.25s linear;\n\n span {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"]);return nA=function(){return e},e}function nw(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n"]);return nw=function(){return e},e}function nk(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n gap: ",";\n padding: ",";\n border-radius: ",";\n cursor: pointer;\n &:hover {\n background-color: ",";\n }\n\n &[data-highlighted] {\n background-color: ",";\n }\n"]);return nk=function(){return e},e}function nS(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: auto;\n"]);return nS=function(){return e},e}function nP(){let e=(0,p._)(["\n ","\n white-space: nowrap;\n"]);return nP=function(){return e},e}function nL(){let e=(0,p._)(["\n position: relative;\n display: flex;\n"]);return nL=function(){return e},e}function nM(){let e=(0,p._)(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) rotate(45deg);\n width: 80%;\n height: 2px;\n background-color: ",";\n"]);return nM=function(){return e},e}function nO(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n text-transform: capitalize;\n gap: ",";\n"]);return nO=function(){return e},e}function nT(){let e=(0,p._)(["\n ","\n"]);return nT=function(){return e},e}function nD(){let e=(0,p._)(["\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n user-select: none;\n pointer-events: none;\n transition: color ",";\n"]);return nD=function(){return e},e}function nI(){let e=(0,p._)(["\n ","\n flex-shrink: 1;\n transition: opacity ",";\n"]);return nI=function(){return e},e}function nE(){let e=(0,p._)(["\n align-items: center;\n bottom: 0;\n display: flex;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"]);return nE=function(){return e},e}function nH(){let e=(0,p._)(["\n from {\n background-position: 0% 0%;\n }\n to {\n background-position: -200% 0%;\n }\n"]);return nH=function(){return e},e}function nV(){let e=(0,p._)([""]);return nV=function(){return e},e}function nF(){let e=(0,p._)(["\n position: relative;\n overflow: visible;\n display: inline-block;\n user-select: none;\n width: ",";\n border-radius: ",";\n cursor: ",";\n\n &::after {\n content: '';\n pointer-events: none;\n position: absolute;\n inset: 0;\n ","\n background-size: 200% 100%;\n animation: "," 1s linear infinite;\n animation-play-state: paused;\n transition: all 150ms;\n display: ",";\n }\n\n "," {\n --typography-scale: 1;\n align-items: center;\n background-color: ",";\n border-radius: ",";\n border: solid 1px ",";\n color: ",";\n\n display: inline-flex;\n font-family: inherit;\n text-align: ",";\n justify-content: ",";\n max-width: 100%;\n padding: calc("," - 1px) calc("," - 1px);\n position: relative;\n transition:\n background-color ",",\n border-color ",";\n width: ",";\n opacity: ",";\n }\n\n "," {\n ","\n line-height: ",";\n }\n\n &:hover {\n "," {\n background-color: ",";\n }\n\n "," {\n color: ",";\n }\n\n &:after {\n animation-play-state: running;\n }\n }\n\n [data-input-type='keyboard'] &:focus "," {\n background-color: ",";\n }\n\n "," > span + span {\n margin-left: ",";\n }\n "," > span {\n ","\n }\n\n "," {\n color: ",";\n }\n "]);return nF=function(){return e},e}function nB(){let e=(0,p._)(["\n ","\n\n ","\n"]);return nB=function(){return e},e}function nz(){let e=(0,p._)(["\n ","\n display: flex;\n flex-direction: column;\n gap: ",";\n"]);return nz=function(){return e},e}function nR(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n gap: ",";\n height: ",";\n"]);return nR=function(){return e},e}function nY(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return nY=function(){return e},e}function nG(){let e=(0,p._)(["\n /* The negative margin is used to offset the padding of the button so that the button aligns nicely with the content */\n margin-left: ",";\n height: ",";\n width: ",";\n"]);return nG=function(){return e},e}function nW(){let e=(0,p._)(["\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n"]);return nW=function(){return e},e}function nU(){let e=(0,p._)(["\n display: contents;\n"]);return nU=function(){return e},e}function nN(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n width: 4em;\n aspect-ratio: 1 / 1;\n padding: ",";\n margin: 0;\n border: none;\n background: none;\n cursor: pointer;\n &:hover {\n background: ",";\n }\n"]);return nN=function(){return e},e}function nK(){let e=(0,p._)(["\n opacity: 0.5;\n "]);return nK=function(){return e},e}function nZ(){let e=(0,p._)(["\n background: transparent;\n border: none;\n\n ","\n\n &::placeholder {\n color: inherit;\n opacity: 0.5;\n }\n\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n "]);return nZ=function(){return e},e}function nX(){let e=(0,p._)(["\n &,\n &:hover {\n border-color: ",";\n }\n "]);return nX=function(){return e},e}function n_(){let e=(0,p._)(["\n border: solid 1px ",";\n border-radius: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n }\n\n &:focus-within {\n border-color: ",";\n }\n\n ",";\n "]);return n_=function(){return e},e}function nQ(){let e=(0,p._)(["\n &::placeholder {\n color: ",";\n }\n "]);return nQ=function(){return e},e}function nJ(){let e=(0,p._)(["\n ","\n color: ",";\n\n ","\n "]);return nJ=function(){return e},e}function nq(){let e=(0,p._)(["\n ","\n display: flex;\n flex-flow: row nowrap;\n"]);return nq=function(){return e},e}function n$(){let e=(0,p._)(["\n ","\n ","\n "]);return n$=function(){return e},e}function n1(){let e=(0,p._)(["\n ","\n ","\n padding: "," ",";\n color: ",";\n width: 100%;\n\n &:focus {\n outline: none;\n }\n"]);return n1=function(){return e},e}function n0(){let e=(0,p._)(["\n padding: ",";\n"]);return n0=function(){return e},e}function n2(){let e=(0,p._)(["\n position: fixed;\n transform: translateY(calc(-100% - ","));\n z-index: ",";\n display: inline-flex;\n padding: ",";\n background: ",";\n border-radius: ",";\n font-family: ",";\n --typography-scale: 1;\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return n2=function(){return e},e}function n5(){let e=(0,p._)(["\n width: 1px;\n margin: "," ",";\n background-color: ",";\n\n & + & {\n display: none;\n }\n"]);return n5=function(){return e},e}function n3(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"]);return n3=function(){return e},e}function n7(){let e=(0,p._)(["\n animation: "," ",";\n "]);return n7=function(){return e},e}function n9(){let e=(0,p._)(["\n user-select: none;\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n padding: "," ",";\n max-width: ","em;\n color: ",";\n z-index: ",";\n\n ","\n "]);return n9=function(){return e},e}function n4(){let e=(0,p._)(["\n ","\n"]);return n4=function(){return e},e}function n6(){let e=(0,p._)(["\n fill: ",";\n"]);return n6=function(){return e},e}function n8(){let e=(0,p._)(["\n ","\n white-space: pre-wrap;\n strong {\n font-weight: ",";\n }\n"]);return n8=function(){return e},e}function re(){let e=(0,p._)(["\n ","\n white-space: pre-wrap;\n"]);return re=function(){return e},e}function rt(){let e=(0,p._)(["\n z-index: ",";\n"]);return rt=function(){return e},e}function rn(){let e=(0,p._)(["\n ","\n"]);return rn=function(){return e},e}function rr(){let e=(0,p._)(["\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n overflow: hidden;\n\n &::before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n ",";\n }\n "]);return rr=function(){return e},e}function ri(){let e=(0,p._)(["\n position: relative;\n ","\n"]);return ri=function(){return e},e}function ro(){let e=(0,p._)([""]);return ro=function(){return e},e}function rl(){let e=(0,p._)(["\n position: relative;\n display: flex;\n align-items: center;\n user-select: none;\n touch-action: none;\n width: 100%;\n height: 1.4em;\n"]);return rl=function(){return e},e}function ra(){let e=(0,p._)(["\n background-color: ",";\n position: relative;\n flex-grow: 1;\n border-radius: 9999px;\n height: 2px;\n"]);return ra=function(){return e},e}function rs(){let e=(0,p._)(["\n position: absolute;\n background-color: ",";\n border-radius: 9999px;\n height: 100%;\n"]);return rs=function(){return e},e}function ru(){let e=(0,p._)(["\n display: block;\n width: 1.4em;\n height: 1.4em;\n background-color: ",";\n box-shadow: ",";\n border-radius: 50%;\n cursor: pointer;\n &:hover {\n transform: scale(1.1);\n }\n"]);return ru=function(){return e},e}function rc(){let e=(0,p._)(["\n display: contents;\n ","\n"]);return rc=function(){return e},e}function rd(){let e=(0,p._)(["\n overflow: visible;\n fill: none;\n & circle {\n stroke: ",";\n }\n"]);return rd=function(){return e},e}function rp(){let e=(0,p._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return rp=function(){return e},e}function rh(){let e=(0,p._)(["\n ","\n ","\n user-select: none;\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n color: ",";\n\n ","\n"]);return rh=function(){return e},e}function rg(){let e=(0,p._)(["\n ","\n ","\n display: flex;\n padding: "," ",";\n"]);return rg=function(){return e},e}function rf(){let e=(0,p._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return rf=function(){return e},e}function rm(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n\n ","\n"]);return rm=function(){return e},e}function ry(){let e=(0,p._)(["\n width: 1.4em;\n height: 1.4em;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return ry=function(){return e},e}function rx(){let e=(0,p._)(["\n ","\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n"]);return rx=function(){return e},e}function rb(){let e=(0,p._)(["\n --typography-scale: 1;\n display: flex;\n flex-direction: column;\n gap: ",";\n width: 18em;\n"]);return rb=function(){return e},e}function rC(){let e=(0,p._)(["\n width: 100%;\n aspect-ratio: 1;\n border-radius: ",";\n border: 1px solid ",";\n"]);return rC=function(){return e},e}function rv(){let e=(0,p._)(["\n position: relative;\n width: 100%;\n"]);return rv=function(){return e},e}function rj(){let e=(0,p._)(["\n display: flex;\n width: 100%;\n height: 1.5em;\n border-radius: ",";\n border: 1px solid ",";\n"]);return rj=function(){return e},e}function rA(){let e=(0,p._)(["\n border: 2px solid ",";\n box-shadow: ",";\n width: 2em;\n height: 2em;\n top: 50%;\n border-radius: 50%;\n"]);return rA=function(){return e},e}function rw(){let e=(0,p._)(["\n ","\n user-select: none;\n z-index: ",";\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return rw=function(){return e},e}function rk(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n"]);return rk=function(){return e},e}function rS(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return rS=function(){return e},e}function rP(){let e=(0,p._)(["\n width: 1.6em;\n height: 1.6em;\n border-radius: 50%;\n outline: ",";\n"]);return rP=function(){return e},e}function rL(){let e=(0,p._)(["\n background-color: ",";\n border: 1px solid ",";\n"]);return rL=function(){return e},e}function rM(){let e=(0,p._)(["\n ",";\n border: 1px solid ",";\n"]);return rM=function(){return e},e}function rO(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n gap: ",";\n"]);return rO=function(){return e},e}function rT(){let e=(0,p._)(["\n padding: 8px 0 0 0;\n h4 {\n padding: 0 12px;\n ",";\n color: ",";\n }\n * + h4 {\n margin-top: 8px;\n }\n"]);return rT=function(){return e},e}function rD(){let e=(0,p._)(["\n padding: 4px;\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n"]);return rD=function(){return e},e}function rI(){let e=(0,p._)(["\n padding: 8px;\n"]);return rI=function(){return e},e}function rE(){let e=(0,p._)(["\n padding: 8px 12px 12px 12px;\n"]);return rE=function(){return e},e}function rH(){let e=(0,p._)(["\n padding: "," 0;\n & + & {\n margin-top: ",";\n }\n"]);return rH=function(){return e},e}function rV(){let e=(0,p._)(["\n ","\n color: ",";\n padding: 0 ",";\n margin-bottom: ",";\n"]);return rV=function(){return e},e}function rF(){let e=(0,p._)(["\n user-select: none;\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: auto;\n min-width: 0;\n color: ",";\n"]);return rF=function(){return e},e}function rB(){let e=(0,p._)(["\n background: ",";\n padding: ",";\n margin: "," 0;\n border-radius: ",";\n "]);return rB=function(){return e},e}function rz(){let e=(0,p._)(["\n display: inline-flex;\n color: ",";\n\n ","\n"]);return rz=function(){return e},e}function rR(){let e=(0,p._)(["\n margin: -"," 0;\n &:first-child {\n margin-left: ",";\n }\n &:last-child {\n margin-right: ",";\n }\n"]);return rR=function(){return e},e}function rY(){let e=(0,p._)(["\n ","\n ","\n"]);return rY=function(){return e},e}function rG(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return rG=function(){return e},e}function rW(){let e=(0,p._)(["\n &:hover {\n "," {\n color: ",";\n }\n "," {\n color: ",";\n }\n }\n "]);return rW=function(){return e},e}function rU(){let e=(0,p._)(["\n "," {\n color: ",";\n }\n "," {\n color: ",";\n }\n\n ","\n "]);return rU=function(){return e},e}function rN(){let e=(0,p._)(["\n background-color: ",";\n border-radius: ",";\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n ","\n"]);return rN=function(){return e},e}function rK(){let e=(0,p._)(["\n &:hover {\n > "," {\n background-color: ",";\n }\n }\n "]);return rK=function(){return e},e}function rZ(){let e=(0,p._)(["\n ","\n user-select: none;\n display: block;\n width: 100%;\n min-width: 0;\n padding: ",";\n cursor: ",";\n ",";\n"]);return rZ=function(){return e},e}function rX(){let e=(0,p._)(["\n ",";\n"]);return rX=function(){return e},e}function r_(){let e=(0,p._)(["\n display: inline-block;\n width: ",";\n"]);return r_=function(){return e},e}function rQ(){let e=(0,p._)(["\n height: ",";\n display: flex;\n align-items: center;\n &:after {\n ","\n content: '';\n display: block;\n height: ",";\n border-radius: ",";\n width: 100%;\n }\n &:last-child {\n width: ",";\n }\n "]);return rQ=function(){return e},e}function rJ(){let e=(0,p._)(["\n ","\n"]);return rJ=function(){return e},e}function rq(){let e=(0,p._)(["\n display: flex;\n align-self: center;\n flex-grow: 0;\n flex-shrink: 0;\n user-select: none;\n"]);return rq=function(){return e},e}function r$(){let e=(0,p._)(["\n display: inline-flex;\n align-items: center;\n\n "," + ",", "," + "," {\n margin-left: ",";\n }\n"]);return r$=function(){return e},e}function r1(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: "," "," ",";\n"]);return r1=function(){return e},e}function r0(){let e=(0,p._)(["\n ","\n ","\n flex-grow: 1;\n color: ",";\n"]);return r0=function(){return e},e}function r2(){let e=(0,p._)(["\n display: flex;\n margin: "," ",";\n"]);return r2=function(){return e},e}function r5(){let e=(0,p._)(["\n ",";\n font-weight: 600;\n"]);return r5=function(){return e},e}function r3(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return r3=function(){return e},e}function r7(){let e=(0,p._)(["\n height: 1px;\n background: ",";\n margin: "," ",";\n"]);return r7=function(){return e},e}function r9(){let e=(0,p._)(["\n ",";\n max-width: ",";\n max-height: ",";\n overflow: auto;\n display: flex;\n flex-direction: column;\n border-radius: inherit;\n "]);return r9=function(){return e},e}function r4(){let e=(0,p._)(["\n ",";\n"]);return r4=function(){return e},e}function r6(){let e=(0,p._)(["\n padding: ",";\n color: ",";\n text-align: center;\n word-break: break-word;\n"]);return r6=function(){return e},e}function r8(){let e=(0,p._)(["\n flex: 1 1 auto;\n overflow-y: auto;\n padding: "," ",";\n"]);return r8=function(){return e},e}function ie(){let e=(0,p._)(["\n flex: 0 0 auto;\n padding: "," "," "," ",";\n\n & + "," {\n padding-top: 0;\n }\n"]);return ie=function(){return e},e}function it(){let e=(0,p._)(["\n flex: 0 0 auto;\n padding: "," "," "," ",";\n\n & + * {\n padding-top: 0;\n }\n"]);return it=function(){return e},e}function ir(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n"]);return ir=function(){return e},e}function ii(){let e=(0,p._)(["\n opacity: 0;\n cursor: pointer;\n height: 100%;\n left: 0;\n position: absolute;\n top: 0;\n width: 100%;\n"]);return ii=function(){return e},e}function io(){let e=(0,p._)(["\n font-size: ",";\n user-select: none;\n opacity: ",";\n background-color: ",";\n border-radius: ",";\n border: solid 1px ",";\n cursor: pointer;\n max-width: ",";\n min-width: ",";\n pointer-events: ",";\n position: relative;\n transition: all ",";\n width: ",";\n min-height: ",";\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n padding: "," ",";\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n &:focus-within {\n border-color: ",";\n }\n "]);return io=function(){return e},e}function il(){let e=(0,p._)(["\n ","\n"]);return il=function(){return e},e}function ia(){let e=(0,p._)(["\n display: flex;\n"]);return ia=function(){return e},e}function is(){let e=(0,p._)(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n"]);return is=function(){return e},e}function iu(){let e=(0,p._)(["\n ","\n opacity: ",";\n color: ",";\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-flex;\n"]);return iu=function(){return e},e}function ic(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return ic=function(){return e},e}function id(){let e=(0,p._)(["\n flex-grow: 1;\n"]);return id=function(){return e},e}function ip(){let e=(0,p._)(["\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n color: ",";\n"]);return ip=function(){return e},e}function ih(){let e=(0,p._)(["\n ","\n ","\n display: flex;\n padding: 0 "," 0 ",";\n border-width: 1px;\n position: relative;\n ","\n "]);return ih=function(){return e},e}function ig(){let e=(0,p._)(["\n ","\n"]);return ig=function(){return e},e}function im(){let e=(0,p._)(["\n ","\n ","\n text-align: ",";\n width: 100%;\n "]);return im=function(){return e},e}function iy(){let e=(0,p._)(["\n ","\n"]);return iy=function(){return e},e}function ix(){let e=(0,p._)(["\n ",": var(--input-padding-x);\n "]);return ix=function(){return e},e}function ib(){let e=(0,p._)(["\n pointer-events: none;\n display: inline-flex;\n position: absolute;\n ","\n top: 50%;\n transform: translateY(-50%);\n"]);return ib=function(){return e},e}function iC(){let e=(0,p._)(["\n ","\n border-radius: ",";\n ",";\n"]);return iC=function(){return e},e}function iv(){let e=(0,p._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return iv=function(){return e},e}function ij(){let e=(0,p._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return ij=function(){return e},e}function iA(){let e=(0,p._)(["\n --input-padding-x: ",";\n height: ",";\n "]);return iA=function(){return e},e}function iw(){let e=(0,p._)(["\n ","\n user-select: none;\n color: ",";\n margin-bottom: ",";\n"]);return iw=function(){return e},e}function ik(){let e=(0,p._)(["\n ","\n width: 1em;\n height: 1em;\n border-radius: 0.3em;\n"]);return ik=function(){return e},e}function iS(){let e=(0,p._)(["\n ","\n width: 100%;\n display: flex;\n gap: ",";\n align-items: center;\n"]);return iS=function(){return e},e}function iP(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n padding: "," ",";\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n border-radius: ",";\n height: ",";\n gap: ",";\n flex: 0;\n"]);return iP=function(){return e},e}function iL(){let e=(0,p._)(["\n ","\n font-weight: ",";\n align-items: center;\n padding: 0 ",";\n flex: 1;\n text-wrap: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"]);return iL=function(){return e},e}function iM(){let e=(0,p._)(["\n ","\n user-select: none;\n z-index: ",";\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n border-radius: ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return iM=function(){return e},e}function iO(){let e=(0,p._)(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid transparent;\n overflow: hidden;\n padding: ",";\n\n &::before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n ","\n"]);return iO=function(){return e},e}function iT(){let e=(0,p._)(["\n ","\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: ",";\n align-items: center;\n justify-content: center;\n"]);return iT=function(){return e},e}function iD(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return iD=function(){return e},e}function iI(){let e=(0,p._)(["\n ","\n font-weight: ",";\n border-radius: ",";\n display: flex;\n gap: ",";\n justify-content: center;\n padding: ",";\n transition: background-color 0.1s ease-in-out;\n\n &[aria-checked='true'],\n &[data-state='checked'] {\n opacity: 1;\n "," {\n background-color: ",";\n }\n\n "," {\n background-color: ",";\n }\n }\n\n &:hover {\n "," {\n background-color: ",";\n }\n "," {\n background-color: ",";\n }\n }\n"]);return iI=function(){return e},e}function iE(){let e=(0,p._)(["\n line-height: ",";\n flex-direction: column;\n justify-content: center;\n display: flex;\n text-wrap: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n gap: ",";\n width: 100%;\n min-width: ",";\n"]);return iE=function(){return e},e}function iH(){let e=(0,p._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return iH=function(){return e},e}function iV(){let e=(0,p._)(["\n ","\n ","\n user-select: none;\n display: flex;\n align-items: center;\n gap: ",";\n padding: "," ",";\n color: ",";\n\n ","\n"]);return iV=function(){return e},e}function iF(){let e=(0,p._)(["\n ","\n ","\n display: flex;\n padding: "," ",";\n"]);return iF=function(){return e},e}function iB(){let e=(0,p._)(["\n pointer-events: none;\n opacity: 0.5;\n "]);return iB=function(){return e},e}function iz(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n\n ","\n"]);return iz=function(){return e},e}function iR(){let e=(0,p._)(["\n width: 1.4em;\n height: 1.4em;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return iR=function(){return e},e}function iY(){let e=(0,p._)(["\n ","\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n"]);return iY=function(){return e},e}function iG(){let e=(0,p._)(["\n --typography-scale: 1;\n display: flex;\n flex-direction: column;\n gap: ",";\n width: 18em;\n"]);return iG=function(){return e},e}function iW(){let e=(0,p._)(["\n width: 100%;\n aspect-ratio: 1;\n border-radius: ",";\n border: 1px solid ",";\n"]);return iW=function(){return e},e}function iU(){let e=(0,p._)(["\n position: relative;\n width: 100%;\n"]);return iU=function(){return e},e}function iN(){let e=(0,p._)(["\n display: flex;\n width: 100%;\n height: 1.5em;\n border-radius: ",";\n border: 1px solid ",";\n"]);return iN=function(){return e},e}function iK(){let e=(0,p._)(["\n border: 2px solid ",";\n box-shadow: ",";\n width: 2em;\n height: 2em;\n top: 50%;\n border-radius: 50%;\n"]);return iK=function(){return e},e}function iZ(){let e=(0,p._)(["\n ","\n user-select: none;\n z-index: ",";\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n border: 1px solid ",";\n max-width: var(--radix-popover-content-available-width);\n color: ",";\n"]);return iZ=function(){return e},e}function iX(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n padding: ",";\n"]);return iX=function(){return e},e}function i_(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return i_=function(){return e},e}function iQ(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n"]);return iQ=function(){return e},e}function iJ(){let e=(0,p._)(["\n ","\n"]);return iJ=function(){return e},e}function iq(){let e=(0,p._)(["\n ","\n"]);return iq=function(){return e},e}function i$(){let e=(0,p._)(["\n ","\n"]);return i$=function(){return e},e}function i1(){let e=(0,p._)(["\n ","\n"]);return i1=function(){return e},e}function i0(){let e=(0,p._)(["\n ","\n"]);return i0=function(){return e},e}function i2(){let e=(0,p._)(["\n ","\n"]);return i2=function(){return e},e}function i5(){let e=(0,p._)(["\n .ProseMirror ."," {\n display: inline-block;\n }\n"]);return i5=function(){return e},e}function i3(){let e=(0,p._)(["\n blockquote."," {\n border-left: 3px solid ",";\n padding-left: ",";\n font-style: italic;\n\n p {\n color: ",";\n }\n }\n"]);return i3=function(){return e},e}function i7(){let e=(0,p._)(["\n h1."," {\n ","\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h2."," {\n ","\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h3."," {\n ","\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n h6."," {\n ","\n\n &:not(:first-child) {\n margin-top: ",";\n }\n }\n\n p."," + p."," {\n margin-top: ",";\n }\n"]);return i7=function(){return e},e}function i9(){let e=(0,p._)(["\n a."," {\n ","\n }\n"]);return i9=function(){return e},e}function i4(){let e=(0,p._)(["\n ul.",", ol."," {\n padding-left: ",";\n }\n\n ul."," {\n list-style-type: disc;\n }\n\n ol."," {\n list-style-type: decimal;\n }\n"]);return i4=function(){return e},e}function i6(){let e=(0,p._)(["\n p."," {\n ","\n }\n"]);return i6=function(){return e},e}function i8(){let e=(0,p._)(["\n u."," {\n text-decoration: none;\n border-bottom: 1px solid currentColor;\n }\n"]);return i8=function(){return e},e}function oe(){let e=(0,p._)(["\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return oe=function(){return e},e}function ot(){let e=(0,p._)(["\n ","\n\n .ProseMirror-focused {\n /** Overwrite default [data-input-type='keyboard'] *:focus outline */\n & {\n outline: none;\n }\n }\n\n * {\n caret-color: ",";\n }\n"]);return ot=function(){return e},e}function on(){let e=(0,p._)(["\n content: attr(data-placeholder);\n position: absolute;\n left: 0;\n right: 0;\n color: var(--text-editor-placeholder-color, ",");\n pointer-events: none;\n"]);return on=function(){return e},e}function or(){let e=(0,p._)(["\n .is-editor-empty:before,\n .is-editor-empty .is-empty:before {\n ","\n }\n"]);return or=function(){return e},e}function oi(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n display: flex;\n\n > div {\n flex: 1;\n display: flex;\n }\n\n [contenteditable] {\n flex: 1;\n }\n "]);return oi=function(){return e},e}function oo(){let e=(0,p._)(["\n ","\n overflow: auto;\n\n ","\n"]);return oo=function(){return e},e}function ol(){let e=(0,p._)(["\n ","\n max-width: 100%;\n flex-grow: 1;\n max-height: 12em;\n overflow-y: auto;\n color: ",";\n\n // Overrides placeholder styles\n .is-editor-empty::before {\n height: unset;\n color: ",";\n }\n\n .ProseMirror :is(h1, h2, h3, h4, h5, h6) {\n // Removes leading spaces from headings, left from markdown\n white-space: pre-line;\n }\n\n /* Reduce the scrollbar */\n &::-webkit-scrollbar {\n width: 0.25em;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ",";\n border-radius: 0.5em;\n }\n"]);return ol=function(){return e},e}function oa(){let e=(0,p._)(["\n margin-right: auto;\n"]);return oa=function(){return e},e}function os(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n padding: 0.2em 0.6em;\n max-width: 20em;\n overflow: hidden;\n"]);return os=function(){return e},e}function ou(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: ",";\n"]);return ou=function(){return e},e}function oc(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n"]);return oc=function(){return e},e}function od(){let e=(0,p._)(["\n ","\n ","\n padding-top: 0.4em;\n margin: 0.4em 0;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n color: ",";\n"]);return od=function(){return e},e}function op(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ",";\n"]);return op=function(){return e},e}function oh(){let e=(0,p._)(["\n ","\n color: ",";\n"]);return oh=function(){return e},e}function og(){let e=(0,p._)(["\n display: flex;\n flex-flow: column;\n min-width: 20em;\n max-width: 30em;\n"]);return og=function(){return e},e}function of(){let e=(0,p._)(["\n color: white;\n max-width: 100%;\n padding: 1.6em 1.6em 1.2em 1.6em;\n max-height: 20em;\n overflow-y: scroll;\n &::-webkit-scrollbar {\n display: none;\n }\n"]);return of=function(){return e},e}function om(){let e=(0,p._)(["\n ","\n display: flex;\n justify-content: space-between;\n padding: 1.2em 1.6em;\n border-top: 1px solid rgba(255, 255, 255, 0.08);\n color: ",";\n"]);return om=function(){return e},e}function oy(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n"]);return oy=function(){return e},e}function ox(){let e=(0,p._)(["\n transform: translate(-50%, -50%) rotate(-90deg) translateX(-50%);\n "]);return ox=function(){return e},e}function ob(){let e=(0,p._)(["\n transform: translate(-50%, -50%);\n "]);return ob=function(){return e},e}function oC(){let e=(0,p._)(["\n ","\n"]);return oC=function(){return e},e}function ov(){let e=(0,p._)(["\n border-radius: ",";\n padding: ","px ","px;\n "]);return ov=function(){return e},e}function oj(){let e=(0,p._)(["\n ","\n display: block;\n color: ",";\n opacity: ",";\n ","\n"]);return oj=function(){return e},e}function oA(){let e=(0,p._)(["\n position: absolute;\n"]);return oA=function(){return e},e}function ow(){let e=(0,p._)(["\n ","\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n span + span {\n margin-left: 0.4em;\n }\n span:nth-child(3) {\n opacity: 0.8;\n }\n"]);return ow=function(){return e},e}function ok(){let e=(0,p._)(["\n ","\n background: ",";\n color: ",";\n border: 1px solid ",";\n padding: "," ",";\n border-radius: ",";\n"]);return ok=function(){return e},e}function oS(){let e=(0,p._)(["\n position: absolute;\n"]);return oS=function(){return e},e}function oP(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n"]);return oP=function(){return e},e}function oL(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oL=function(){return e},e}function oM(){let e=(0,p._)(["\n border: 2px solid ",";\n"]);return oM=function(){return e},e}function oO(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n"]);return oO=function(){return e},e}function oT(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n"]);return oT=function(){return e},e}function oD(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oD=function(){return e},e}function oI(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oI=function(){return e},e}function oE(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oE=function(){return e},e}function oH(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n inset: 0;\n pointer-events: none;\n"]);return oH=function(){return e},e}function oV(){let e=(0,p._)(["\n stroke: ",";\n"]);return oV=function(){return e},e}function oF(){let e=(0,p._)(["\n position: absolute;\n"]);return oF=function(){return e},e}function oB(){let e=(0,p._)(["\n position: absolute;\n"]);return oB=function(){return e},e}function oz(){let e=(0,p._)(["\n position: absolute;\n inset: 0;\n"]);return oz=function(){return e},e}function oR(){let e=(0,p._)(["\n position: absolute;\n inset: 0;\n"]);return oR=function(){return e},e}function oY(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n"]);return oY=function(){return e},e}function oG(){let e=(0,p._)(["\n pointer-events: all;\n"]);return oG=function(){return e},e}function oW(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n"]);return oW=function(){return e},e}function oU(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n\n // ensures the shadow isn't clipped\n > svg {\n overflow: visible;\n padding: 0.1em;\n }\n"]);return oU=function(){return e},e}function oN(){let e=(0,p._)(["\n ","\n display: flex;\n flex-direction: row;\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n color: ",";\n background: ",";\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return oN=function(){return e},e}function oK(){let e=(0,p._)(["\n fill: none;\n"]);return oK=function(){return e},e}function oZ(){let e=(0,p._)(["\n fill: none;\n"]);return oZ=function(){return e},e}function oX(){let e=(0,p._)(["\n pointer-events: all;\n"]);return oX=function(){return e},e}function o_(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n"]);return o_=function(){return e},e}function oQ(){let e=(0,p._)(["\n ","\n display: flex;\n flex-direction: row;\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n color: ",";\n position: relative;\n background: ",";\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return oQ=function(){return e},e}function oJ(){let e=(0,p._)(["\n overflow: visible;\n position: absolute;\n"]);return oJ=function(){return e},e}function oq(){let e=(0,p._)(["\n pointer-events: all;\n"]);return oq=function(){return e},e}function o$(){let e=(0,p._)(["\n fill: ",";\n"]);return o$=function(){return e},e}function o1(){let e=(0,p._)(["\n ","\n"]);return o1=function(){return e},e}function o0(){let e=(0,p._)(["\n position: absolute;\n inset: 0;\n"]);return o0=function(){return e},e}function o2(){let e=(0,p._)(["\n position: absolute;\n width: ","px;\n height: ","px;\n border-radius: 50%;\n background: ",";\n margin: -","px;\n"]);return o2=function(){return e},e}function o5(){let e=(0,p._)(["\n top: 0;\n left: 0;\n cursor: nwse-resize;\n"]);return o5=function(){return e},e}function o3(){let e=(0,p._)(["\n top: 0;\n right: 0;\n cursor: nesw-resize;\n"]);return o3=function(){return e},e}function o7(){let e=(0,p._)(["\n bottom: 0;\n left: 0;\n cursor: nesw-resize;\n"]);return o7=function(){return e},e}function o9(){let e=(0,p._)(["\n bottom: 0;\n right: 0;\n cursor: nwse-resize;\n"]);return o9=function(){return e},e}function o4(){let e=(0,p._)(["\n position: absolute;\n pointer-events: all;\n"]);return o4=function(){return e},e}function o6(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: none;\n"]);return o6=function(){return e},e}function o8(){let e=(0,p._)(["\n display: flex;\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n font-family: ",";\n\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return o8=function(){return e},e}function le(){let e=(0,p._)(["\n h1."," {\n ","\n margin-bottom: ",";\n }\n"]);return le=function(){return e},e}function lt(){let e=(0,p._)(["\n ","\n\n .is-empty::before {\n ","\n }\n"]);return lt=function(){return e},e}function ln(){let e=(0,p._)(["\n ","\n\n .ProseMirror-focused {\n /** Hide default selection highlight when a NodeView is a part of text editor selection */\n [contenteditable='false'] textarea,\n [contenteditable='false'] input {\n &::selection {\n background-color: transparent;\n }\n }\n }\n"]);return ln=function(){return e},e}function lr(){let e=(0,p._)(["\n .is-editor-empty::before {\n ","\n }\n\n // We do not want headers in dashboard summaries to exceed the size of the page title\n .ProseMirror {\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: ",";\n font-size: inherit;\n line-height: inherit;\n font-weight: medium;\n }\n h1 {\n font-size: 1.8em;\n line-height: 2.4em;\n }\n\n h2 {\n font-size: 1.7em;\n line-height: 2.2em;\n }\n\n h3 {\n font-size: 1.6em;\n line-height: 2em;\n }\n }\n"]);return lr=function(){return e},e}function li(){let e=(0,p._)(["\n ","\n"]);return li=function(){return e},e}function lo(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n\n position: absolute;\n left: -999999px;\n top: -999999px;\n opacity: 0;\n pointer-events: none;\n\n h1."," {\n max-width: 100%;\n display: inline-block;\n }\n\n p."," {\n max-width: 100%;\n display: inline-block;\n }\n"]);return lo=function(){return e},e}function ll(){let e=(0,p._)(["\n .is-empty:before {\n ","\n }\n\n [contenteditable]:not(.ProseMirror-focused) {\n h1.",", p."," {\n ","\n }\n }\n\n h1."," {\n font-size: calc(","px * var(--typography-scale));\n margin: 0 !important;\n }\n\n p."," {\n font-size: calc(","px * var(--typography-scale));\n font-weight: 400;\n color: ",";\n margin: 0 !important;\n }\n"]);return ll=function(){return e},e}function la(){let e=(0,p._)(["\n [contenteditable] {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: center;\n text-align: center;\n }\n\n "," [contenteditable] {\n align-items: center;\n }\n\n /* Placeholder */\n .is-empty:before {\n left: 50%;\n transform: translateX(-50%);\n }\n"]);return la=function(){return e},e}function ls(){let e=(0,p._)(["\n grid-template-columns: minmax(7.2em, auto) 1fr;\n "]);return ls=function(){return e},e}function lu(){let e=(0,p._)(["\n [contenteditable] {\n display: grid;\n grid-template-columns: auto 1fr;\n align-items: baseline;\n gap: ",";\n\n ","\n }\n"]);return lu=function(){return e},e}function lc(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n display: flex;\n\n > div {\n max-width: 100%;\n flex: 1;\n display: flex;\n }\n\n [contenteditable] {\n max-width: 100%;\n flex: 1;\n }\n "]);return lc=function(){return e},e}function ld(){let e=(0,p._)(["\n && h1 {\n font-size: ","px;\n }\n\n && p {\n font-size: ","px;\n }\n "]);return ld=function(){return e},e}function lp(){let e=(0,p._)(["\n ","\n overflow: hidden;\n position: relative;\n\n ","\n ","\n\n ","\n\n h1."," {\n line-height: calc(\n ","px * var(--typography-scale)\n );\n }\n\n p."," {\n line-height: calc(\n ","px * var(--typography-scale)\n );\n }\n\n ","\n"]);return lp=function(){return e},e}function lh(){let e=(0,p._)(["\n p."," {\n font-size: calc(","px * var(--typography-scale));\n line-height: 1.25;\n text-align: center;\n }\n"]);return lh=function(){return e},e}function lg(){let e=(0,p._)(["\n ","\n\n .is-editor-empty:before,\n .is-editor-empty .is-empty:before {\n ","\n transform: translateX(-50%);\n color: inherit;\n opacity: 0.5;\n }\n\n *::selection {\n background: var(--selection);\n color: ",";\n }\n\n * {\n caret-color: var(--selection);\n }\n"]);return lg=function(){return e},e}function lf(){let e=(0,p._)(["\n line-height: 1;\n z-index: 2;\n"]);return lf=function(){return e},e}function lm(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n background: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: ",";\n font-family: ",";\n\n &:before {\n pointer-events: none;\n content: '';\n position: absolute;\n inset: 0;\n ",";\n }\n"]);return lm=function(){return e},e}function ly(){let e=(0,p._)(["\n ","\n ","\n"]);return ly=function(){return e},e}function lx(){let e=(0,p._)(["\n :first-child[data-placeholder]::before,\n :nth-child(2)[data-placeholder]::before {\n ","\n }\n h1,\n h2,\n h3 {\n &.",":not(:first-child) {\n margin-top: 8px;\n }\n }\n"]);return lx=function(){return e},e}function lb(){let e=(0,p._)(["\n *::selection {\n background: transparent;\n color: inherit;\n }\n "]);return lb=function(){return e},e}function lC(){let e=(0,p._)(["\n flex-grow: 1;\n min-height: 2.3em; // Same height as pinned text annotation\n color: ",";\n word-wrap: break-word;\n white-space: break-spaces;\n pointer-events: ",";\n cursor: ",";\n border-radius: 0.6em;\n display: flex;\n align-items: center;\n padding: 0 0.3em 0.1em 0.3em;\n\n > * {\n width: 100%;\n }\n\n p."," {\n line-height: 1.2;\n }\n\n // Workaround for Safari to prevent selecting the text from nearby annotations when resizing this annotation.\n ","\n"]);return lC=function(){return e},e}function lv(){let e=(0,p._)(["\n opacity: ",";\n"]);return lv=function(){return e},e}function lj(){let e=(0,p._)(["\n opacity: "," !important;\n\n .moveable-line.moveable-direction:not(.moveable-edge) {\n border: 1px solid ",";\n }\n"]);return lj=function(){return e},e}function lA(){let e=(0,p._)(["\n & + .moveable-control-box {\n ","\n }\n "]);return lA=function(){return e},e}function lw(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n min-width: auto;\n min-height: auto;\n max-width: none;\n max-height: none;\n display: flex;\n flex-direction: column;\n pointer-events: ",";\n\n &:hover + .moveable-control-box {\n ","\n }\n\n ","\n\n & + .moveable-control-box {\n --bounds-color: "," !important;\n pointer-events: all;\n opacity: ",";\n\n &:hover {\n ","\n }\n\n .moveable-line.moveable-direction:not(.moveable-edge) {\n background: "," !important;\n }\n\n .moveable-control {\n border-width: 0 !important;\n background: "," !important;\n width: 10px !important;\n height: 10px !important;\n margin-top: -5px !important;\n margin-left: -5px !important;\n }\n\n .moveable-direction.moveable-e,\n .moveable-direction.moveable-w {\n cursor: ew-resize !important;\n }\n }\n"]);return lw=function(){return e},e}function lk(){let e=(0,p._)(["\n position: absolute;\n width: 3.2em;\n height: 3.2em;\n cursor: pointer;\n pointer-events: ",";\n z-index: ",";\n"]);return lk=function(){return e},e}function lS(){let e=(0,p._)(["\n position: absolute;\n transform: translate(0, -50%);\n z-index: ",";\n pointer-events: ",";\n\n &:hover {\n z-index: ",";\n }\n"]);return lS=function(){return e},e}function lP(){let e=(0,p._)(["\n width: 1.8em;\n height: 1.8em;\n "]);return lP=function(){return e},e}function lL(){let e=(0,p._)(["\n position: absolute;\n width: 0.8em;\n height: 0.8em;\n border-radius: 50%;\n transform: translate(-50%, -50%);\n border: solid 1.5px ",";\n z-index: ",";\n color: ",";\n filter: drop-shadow(0px 2px 2px rgba(14, 14, 52, 0.08)) drop-shadow(0px 0px 2px rgba(15, 15, 24, 0.12));\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: ",";\n cursor: ",";\n transition:\n width 0.2s ease-in-out,\n height 0.2s ease-in-out;\n &:hover {\n ","\n\n & > * {\n opacity: 1;\n }\n }\n\n & > * {\n opacity: 0;\n }\n"]);return lL=function(){return e},e}function lM(){let e=(0,p._)(["\n position: absolute;\n pointer-events: none;\n z-index: ",";\n"]);return lM=function(){return e},e}function lO(){let e=(0,p._)(["\n ","\n"]);return lO=function(){return e},e}function lT(){let e=(0,p._)(["\n pointer-events: all;\n fill: none;\n"]);return lT=function(){return e},e}function lD(){let e=(0,p._)(["\n ","\n user-select: none;\n fill: var(--typography-chart-text-color, ",");\n white-space: pre;\n"]);return lD=function(){return e},e}function lI(){let e=(0,p._)(["\n position: absolute;\n left: 0;\n top: 0;\n will-change: transform;\n z-index: ",";\n"]);return lI=function(){return e},e}function lE(){let e=(0,p._)(["\n cursor: text;\n display: flex;\n align-items: center;\n justify-content: ",";\n text-align: ",";\n opacity: ",";\n transition: opacity ",";\n"]);return lE=function(){return e},e}function lH(){let e=(0,p._)(["\n ",";\n background: ",";\n color: ",";\n border-radius: ",";\n box-shadow: ",";\n padding: 0 ",";\n margin: 0 ",";\n\n input {\n border: 0;\n padding: 0;\n color: inherit;\n background: inherit;\n font-weight: inherit;\n font-size: inherit;\n text-align: inherit;\n\n &::placeholder {\n color: inherit;\n opacity: 0.5;\n }\n }\n"]);return lH=function(){return e},e}function lV(){let e=(0,p._)(["\n display: grid;\n align-items: center;\n grid-template-areas: 'overlap';\n overflow: hidden;\n"]);return lV=function(){return e},e}function lF(){let e=(0,p._)(["\n grid-area: overlap;\n visibility: hidden;\n white-space: pre;\n font: inherit;\n letter-spacing: inherit;\n line-height: inherit;\n box-sizing: content-box;\n padding-right: 2px;\n"]);return lF=function(){return e},e}function lB(){let e=(0,p._)(["\n grid-area: overlap;\n font: inherit;\n letter-spacing: inherit;\n line-height: inherit;\n white-space: nowrap;\n background: transparent;\n border: none;\n outline: none;\n box-sizing: content-box;\n padding-right: 2px;\n min-width: 1px;\n overflow-x: auto;\n"]);return lB=function(){return e},e}function lz(){let e=(0,p._)(["\n ","\n fill: var(--typography-chart-text-color, ",");\n user-select: none;\n"]);return lz=function(){return e},e}function lR(){let e=(0,p._)(["\n flex: 1;\n user-select: none;\n height: 100%;\n position: relative;\n"]);return lR=function(){return e},e}function lY(){let e=(0,p._)(["\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: ",";\n"]);return lY=function(){return e},e}function lG(){let e=(0,p._)(["\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: ",";\n"]);return lG=function(){return e},e}function lW(){let e=(0,p._)(["\n display: block;\n overflow: visible;\n position: absolute;\n inset: 0;\n clip-path: inset(-2em);\n z-index: ",";\n"]);return lW=function(){return e},e}function lU(){let e=(0,p._)(["\n position: absolute;\n z-index: 2;\n width: fit-content;\n max-width: 50%;\n right: 0;\n top: 0;\n height: 100%;\n display: flex;\n align-items: center;\n overflow: hidden;\n"]);return lU=function(){return e},e}function lN(){let e=(0,p._)(["\n position: absolute;\n"]);return lN=function(){return e},e}function lK(){let e=(0,p._)(["\n display: inline-block;\n position: absolute;\n left: 50%;\n top: 50%;\n"]);return lK=function(){return e},e}function lZ(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n position: relative;\n border-radius: ",";\n"]);return lZ=function(){return e},e}function lX(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n"]);return lX=function(){return e},e}function l_(){let e=(0,p._)([""]);return l_=function(){return e},e}function lQ(){let e=(0,p._)(["\n position: sticky;\n top: 0;\n padding: 0;\n background: ",";\n text-align: start;\n"]);return lQ=function(){return e},e}function lJ(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n padding: "," ",";\n text-align: ",";\n"]);return lJ=function(){return e},e}function lq(){let e=(0,p._)(["\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n gap: ",";\n padding: "," "," ",";\n justify-content: ",";\n"]);return lq=function(){return e},e}function l$(){let e=(0,p._)(["\n flex-shrink: 0;\n display: flex;\n"]);return l$=function(){return e},e}function l1(){let e=(0,p._)(["\n ","\n ","\n color: ",";\n flex-grow: ",";\n"]);return l1=function(){return e},e}function l0(){let e=(0,p._)([""]);return l0=function(){return e},e}function l2(){let e=(0,p._)(["\n ",", "," {\n border: 0 solid ",";\n border-right-width: 1px;\n border-bottom-width: 1px;\n\n &:first-child {\n border-left-color: ",";\n border-left-width: 1px;\n }\n\n &:last-child {\n border-right-color: ",";\n }\n }\n\n "," {\n border-top-width: 1px;\n border-top-color: ",";\n\n &:first-child {\n border-top-left-radius: ",";\n }\n\n &:last-child {\n border-top-right-radius: ",";\n }\n\n &:first-child,\n &:last-child {\n // Hides cell borders visible through sticky header when scrolling.\n box-shadow: 0 -6px 0 0 ",";\n }\n }\n\n &:last-child {\n ",":first-child {\n border-bottom-left-radius: ",";\n }\n ",":last-child {\n border-bottom-right-radius: ",";\n }\n "," {\n border-bottom-color: ",";\n }\n }\n"]);return l2=function(){return e},e}function l5(){let e=(0,p._)(["\n flex-grow: 1;\n display: flex;\n flex-wrap: nowrap;\n gap: ","px;\n justify-content: ",";\n align-items: ",";\n flex-direction: ",";\n user-select: none;\n ",";\n"]);return l5=function(){return e},e}function l3(){let e=(0,p._)([""]);return l3=function(){return e},e}function l7(){let e=(0,p._)(["\n border: 1px solid ",";\n border-radius: calc(1.4em * var(--typography-scale));\n padding: calc("," * var(--typography-scale)) calc("," * var(--typography-scale));\n"]);return l7=function(){return e},e}function l9(){let e=(0,p._)(["\n &:hover {\n cursor: pointer;\n }\n "]);return l9=function(){return e},e}function l4(){let e=(0,p._)(["\n display: inline-flex;\n gap: calc(","px * var(--typography-scale));\n align-items: center;\n max-width: 40em;\n transition: opacity ",";\n opacity: ",";\n background-color: ",";\n ","\n\n ","\n"]);return l4=function(){return e},e}function l6(){let e=(0,p._)(["\n color: var(--typography-chart-text-color, ",");\n "]);return l6=function(){return e},e}function l8(){let e=(0,p._)(["\n color: var(--typography-chart-text-color, ",");\n "]);return l8=function(){return e},e}function ae(){let e=(0,p._)(["\n ","\n ","\n\n ","\n\n ","\n"]);return ae=function(){return e},e}function at(){let e=(0,p._)(["\n color: var(--typography-chart-text-color, ",");\n display: inline-flex;\n gap: 0.4em;\n padding-left: 0.4em;\n"]);return at=function(){return e},e}function an(){let e=(0,p._)(["\n display: inline-flex;\n align-items: center;\n\n > :nth-child(1) {\n position: relative;\n z-index: 1;\n }\n\n > :nth-child(2) {\n margin-left: ",";\n }\n"]);return an=function(){return e},e}function ar(){let e=(0,p._)(["\n width: calc(12px * var(--typography-scale));\n display: flex;\n justify-content: center;\n\n > svg {\n transform: scale(var(--typography-scale));\n }\n"]);return ar=function(){return e},e}function ai(){let e=(0,p._)(["\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n"]);return ai=function(){return e},e}function ao(){let e=(0,p._)([""]);return ao=function(){return e},e}function al(){let e=(0,p._)(["\n user-select: none;\n z-index: ",";\n max-width: 20em;\n max-height: var(--radix-popover-content-available-height);\n display: flex;\n flex-direction: column;\n background: ",";\n border: 1px solid ",";\n border-radius: 0.6em;\n transform-origin: var(--radix-popover-content-transform-origin);\n animation: "," 400ms cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n"]);return al=function(){return e},e}function aa(){let e=(0,p._)(["\n overflow-y: auto;\n padding: "," ",";\n"]);return aa=function(){return e},e}function as(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n gap: ",";\n"]);return as=function(){return e},e}function au(){let e=(0,p._)(["\n fill: ",";\n"]);return au=function(){return e},e}function ac(){let e=(0,p._)(["\n position: relative;\n"]);return ac=function(){return e},e}function ad(){let e=(0,p._)(["\n ","\n position: relative;\n z-index: 3;\n margin-left: ",";\n display: flex;\n gap: ","px;\n align-items: center;\n"]);return ad=function(){return e},e}function ap(){let e=(0,p._)(["\n display: flex;\n align-items: center;\n"]);return ap=function(){return e},e}function ah(){let e=(0,p._)(["\n ","\n color: ",";\n white-space: nowrap;\n"]);return ah=function(){return e},e}function ag(){let e=(0,p._)(["\n ","\n position: absolute;\n z-index: 2;\n inset: 0;\n left: calc("," / 2);\n opacity: 0.67;\n"]);return ag=function(){return e},e}function af(){let e=(0,p._)(["\n ","\n position: absolute;\n z-index: 1;\n inset: 0;\n opacity: 0.33;\n"]);return af=function(){return e},e}function am(){let e=(0,p._)(["\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n justify-content: space-between;\n align-items: end;\n gap: ",";\n width: 100%;\n overflow: hidden;\n &:empty {\n display: none;\n }\n"]);return am=function(){return e},e}function ay(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n gap: ",";\n justify-content: space-between;\n width: 100%;\n"]);return ay=function(){return e},e}function ax(){let e=(0,p._)(["\n margin-left: auto;\n"]);return ax=function(){return e},e}function ab(){let e=(0,p._)(["\n margin-top: calc("," * var(--typography-scale));\n display: flex;\n flex-flow: row nowrap;\n gap: calc("," * var(--typography-scale));\n"]);return ab=function(){return e},e}function aC(){let e=(0,p._)(["\n display: flex;\n align-items: baseline;\n gap: calc("," * var(--typography-scale));\n white-space: nowrap;\n"]);return aC=function(){return e},e}function av(){let e=(0,p._)(["\n line-height: 1;\n font-weight: ",";\n color: var(--typography-chart-text-color, ",");\n"]);return av=function(){return e},e}function aj(){let e=(0,p._)(["\n line-height: 1;\n opacity: 0.8;\n\n &:empty {\n display: none;\n }\n"]);return aj=function(){return e},e}function aA(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n"]);return aA=function(){return e},e}function aw(){let e=(0,p._)(["\n white-space: nowrap;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n color: var(--typography-chart-text-color, ",");\n"]);return aw=function(){return e},e}function ak(){let e=(0,p._)(["\n display: flex;\n justify-content: center;\n width: 1.2em;\n"]);return ak=function(){return e},e}function aS(){let e=(0,p._)(["\n font-weight: ",";\n line-height: 1.33;\n color: var(--typography-chart-text-color, ",");\n\n &:empty {\n display: none;\n }\n"]);return aS=function(){return e},e}function aP(){let e=(0,p._)(["\n user-select: none;\n display: flex;\n flex-direction: column;\n gap: ",";\n transition: opacity ",";\n opacity: ",";\n\n "," {\n font-size: ",";\n }\n\n "," {\n gap: ",";\n }\n\n "," {\n font-size: ",";\n }\n\n "," {\n font-size: ",";\n }\n"]);return aP=function(){return e},e}function aL(){let e=(0,p._)(["\n font-weight: ",";\n line-height: 1.33;\n opacity: 0.8;\n"]);return aL=function(){return e},e}function aM(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n gap: calc("," * var(--typography-scale));\n font-size: ",";\n"]);return aM=function(){return e},e}function aO(){let e=(0,p._)(["\n flex: 1 1 auto;\n min-width: 0;\n font-weight: ",";\n line-height: 1.1;\n opacity: 0.8;\n\n > span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 100%;\n }\n"]);return aO=function(){return e},e}function aT(){let e=(0,p._)(["\n width: calc(1.2em * var(--typography-scale));\n height: calc(1.2em * var(--typography-scale));\n background: ",";\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n svg {\n width: calc(1.2em * var(--typography-scale));\n height: calc(1.2em * var(--typography-scale));\n }\n"]);return aT=function(){return e},e}function aD(){let e=(0,p._)(["\n display: inline-flex;\n align-items: center;\n gap: 0.4em;\n color: ",";\n\n "," {\n font-size: ",";\n }\n"]);return aD=function(){return e},e}function aI(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: ",";\n"]);return aI=function(){return e},e}function aE(){let e=(0,p._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: ",";\n"]);return aE=function(){return e},e}function aH(){let e=(0,p._)(["\n inline-size: ",";\n block-size: ",";\n border: 1px solid ",";\n background-color: ",";\n border-radius: 9999px;\n"]);return aH=function(){return e},e}function aV(){let e=(0,p._)(["\n ","\n max-inline-size: ",";\n"]);return aV=function(){return e},e}function aF(){let e=(0,p._)(["\n pointer-events: none;\n overflow: visible;\n position: absolute;\n left: 0;\n top: 0;\n"]);return aF=function(){return e},e}function aB(){let e=(0,p._)(["\n fill: ",";\n"]);return aB=function(){return e},e}function az(){let e=(0,p._)(["\n fill: ",";\n"]);return az=function(){return e},e}function aR(){let e=(0,p._)(["\n ","\n fill: ",";\n"]);return aR=function(){return e},e}function aY(){let e=(0,p._)(["\n flex-grow: 1;\n position: relative;\n display: flex;\n flex-direction: column;\n font-family: var(--typography-chart-font-family);\n color: var(--typography-chart-text-color);\n"]);return aY=function(){return e},e}function aG(){let e=(0,p._)(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n"]);return aG=function(){return e},e}function aW(){let e=(0,p._)(["\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n"]);return aW=function(){return e},e}function aU(){let e=(0,p._)(["\n position: absolute;\n left: 50%;\n top: 100%;\n z-index: ",";\n"]);return aU=function(){return e},e}function aN(){let e=(0,p._)(["\n position: absolute;\n inset: 1px;\n overflow: hidden;\n pointer-events: none;\n\n &.transition rect {\n transition:\n width 0.2s ease-in-out,\n height 0.2s ease-in-out,\n x 0.2s ease-in-out,\n y 0.2s ease-in-out,\n rx 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out;\n }\n\n @media (prefers-reduced-motion: reduce) {\n &.transition rect {\n transition: none;\n }\n }\n"]);return aN=function(){return e},e}function aK(){let e=(0,p._)(["\n width: 100%;\n height: 100%;\n transition: background 0.2s ease-in-out;\n"]);return aK=function(){return e},e}function aZ(){let e=(0,p._)(["\n display: block;\n width: 100%;\n height: 100%;\n"]);return aZ=function(){return e},e}function aX(){let e=(0,p._)(["\n display: flex;\n flex-direction: column;\n position: relative;\n gap: ",";\n"]);return aX=function(){return e},e}function a_(){let e=(0,p._)(["\n background-color: ",";\n ","\n "]);return a_=function(){return e},e}function aQ(){let e=(0,p._)(["\n transition: background-color 0.2s ease-out;\n background-color: ",";\n "]);return aQ=function(){return e},e}function aJ(){let e=(0,p._)(["\n position: relative;\n border-radius: ",";\n color: var(--typography-chart-text-color, ",");\n ","\n"]);return aJ=function(){return e},e}function aq(){let e=(0,p._)(["\n transition: padding 0.2s ease-out;\n padding: ","px;\n overflow: ",";\n "]);return aq=function(){return e},e}function a$(){let e=(0,p._)(["\n "," {\n "," {\n box-shadow: 0 0 0 1px ",";\n }\n\n "," {\n box-shadow: 0 0 0 1px ",";\n }\n }\n "]);return a$=function(){return e},e}function a1(){let e=(0,p._)(["\n outline: "," solid ",";\n "]);return a1=function(){return e},e}function a0(){let e=(0,p._)(["\n --text-editor-placeholder-color: transparent;\n "]);return a0=function(){return e},e}function a2(){let e=(0,p._)(["\n --typography-scale: ",";\n --typography-chart-font-family: ",";\n --typography-chart-text-color: ",";\n --typography-chart-heading-font-family: ",";\n --typography-chart-heading-text-color: ",";\n\n ","\n\n position: relative;\n width: 100%;\n height: 100%;\n &,\n "," {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n "," {\n flex: 1 1 0;\n }\n "," {\n flex: 0 0 auto;\n }\n\n ","\n ","\n\n ","\n\n ","\n\n &:fullscreen {\n padding: min(",", 5vw);\n }\n"]);return a2=function(){return e},e}function a5(){let e=(0,p._)(["\n user-select: none;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: ",";\n padding: 0 ",";\n"]);return a5=function(){return e},e}function a3(){let e=(0,p._)(["\n ","\n color: ",";\n text-align: center;\n"]);return a3=function(){return e},e}function a7(){let e=(0,p._)(["\n ","\n color: ",";\n text-align: center;\n"]);return a7=function(){return e},e}function a9(){let e=(0,p._)(["\n ","\n display: flex;\n gap: ",";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ",";\n"]);return a9=function(){return e},e}function a4(){let e=(0,p._)(["\n ","\n"]);return a4=function(){return e},e}function a6(){let e=(0,p._)(["\n ","\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"]);return a6=function(){return e},e}function a8(){let e=(0,p._)(["\n & > "," {\n ","\n }\n"]);return a8=function(){return e},e}function se(){let e=(0,p._)(["\n .",":first-child {\n display: none;\n }\n "]);return se=function(){return e},e}function st(){let e=(0,p._)(["\n .",":not(:first-child) {\n display: none;\n }\n "]);return st=function(){return e},e}function sn(){let e=(0,p._)(["\n position: relative;\n font-family: var(--typography-chart-heading-font-family);\n color: var(--typography-chart-heading-text-color);\n h1 {\n ",";\n padding-right: ","px;\n }\n .is-empty {\n display: ",";\n }\n &:focus-within {\n background: ",";\n }\n ","\n ","\n"]);return sn=function(){return e},e}function sr(){let e=(0,p._)(["\n position: absolute;\n right: 0;\n top: 0;\n"]);return sr=function(){return e},e}function si(){let e=(0,p._)(["\n ",";\n color: var(--typography-chart-text-color, ",");\n"]);return si=function(){return e},e}function so(){let e=(0,p._)(["\n overflow: visible;\n pointer-events: none;\n"]);return so=function(){return e},e}function sl(){let e=(0,p._)(["\n fill: ",";\n"]);return sl=function(){return e},e}function sa(){let e=(0,p._)(["\n fill: ",";\n"]);return sa=function(){return e},e}function ss(){let e=(0,p._)(["\n ","\n fill: ",";\n"]);return ss=function(){return e},e}function su(){let e=(0,p._)(["\n fill: ",";\n"]);return su=function(){return e},e}function sc(){let e=(0,p._)(["\n pointer-events: none;\n overflow: visible;\n position: absolute;\n z-index: ",";\n"]);return sc=function(){return e},e}n(29143);let sd={light:300,regular:400,medium:500,semiBold:600,bold:700,black:900},sp=(0,h.AH)(ta(),sd.medium),sh=(0,h.AH)(ts(),sd.semiBold),sg=(0,h.AH)(tu(),sd.medium),sf=(0,h.AH)(tc(),sd.medium),sm=(0,h.AH)(td(),sd.medium),sy=(0,h.AH)(tp(),sd.medium),sx=(0,h.AH)(th(),sd.medium),sb=(0,h.AH)(tg(),sd.medium),sC=(0,h.AH)(tf(),sd.semiBold),sv=(0,h.AH)(tm(),sd.medium),sj=(0,h.AH)(ty(),sd.medium),sA=(0,h.AH)(tx(),sd.semiBold),sw=(0,h.AH)(tb(),sd.light),sk=(0,h.AH)(tC(),sd.medium),sS=(0,h.AH)(tv(),sd.medium),sP=(0,h.AH)(tj(),sd.medium),sL=(0,h.AH)(tA(),sd.medium),sM=(0,h.AH)(tw(),sd.regular),sO=(0,h.AH)(tk(),sd.medium),sT=(0,h.AH)(tS(),sd.regular),sD=(0,h.AH)(tP()),sI=(0,h.AH)(tL()),sE=(0,h.AH)(tM(),sd.regular);var sH=Object.freeze({__proto__:null,axisLabel:sf,dataLabel:sb,differenceArrowLabelLarge:sA,differenceArrowLabelMedium:sj,differenceArrowLabelSmall:sv,goalLineValueLabel:sm,jumboTooltipLabel:sT,jumboTooltipValue:sO,legendItemLabel:sp,miniTooltipFooter:sE,miniTooltipLabel:sD,miniTooltipValue:sI,pieLabel:sw,seriesLabel:sh,stackTotal:sC,tickLabel:sg,tooltipCaption:sk,tooltipCaptionSmall:sS,tooltipFooter:sM,tooltipHeading:sL,tooltipLabel:sP,trendTag:sy,trendTagSmall:sx});let sV={xs:"0.2em",sm:"0.4em",md:"0.8em",lg:"1.2em",xl:"2em",max:"999999px"},sF={none:"0px 0px 0px rgba(15, 15, 24, 0), 0px 0px 0px rgba(14, 14, 52, 0)",xs:"0px 0px 2px rgba(15, 15, 24, 0.12), 0px 2px 2px rgba(14, 14, 52, 0.08)",sm:"0px 0px 4px rgba(15, 15, 24, 0.12), 0px 4px 4px rgba(14, 14, 52, 0.08)",md:"0px 0px 8px rgba(15, 15, 24, 0.12), 0px 8px 8px rgba(14, 14, 52, 0.08)",lg:"0px 0px 16px rgba(15, 15, 24, 0.12), 0px 16px 16px rgba(14, 14, 52, 0.08)"},sB=(e,t,n)=>(0,h.AH)(tO(),t,n?[n].flat().map(e=>e?"calc(".concat(sV[e]," - 1px)"):"0").join(" "):"0",e),sz=.8,sR=10,sY=100,sG={subtle:"100ms cubic-bezier(0.550, 0.085, 0.680, 0.530)"},sW="'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',\n'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'",sU="'Aeonik', 'Aeonik Fallback', ".concat(sW),sN={modern:sW,timeless:"'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'",fresh:sU,technical:"'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'",fineliner:"'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'",brand:"var(--brand-font-family), ".concat(sU),handwritten:"'Permanent Marker', cursive, 'Apple Color Emoji', 'NotoColorEmoji'"},sK={titleLarge:"2.8em",titleMedium:"2.2em",titleSmall:"1.8em",titleSmaller:"1.4em",titleSmallest:"1.2em",body:"1.4em",bodyBold:"1.4em",bodyLink:"1.4em",bodyLarge:"1.6em",caption:"1.2em",captionLink:"1.2em",label:"1em",labelSmall:"0.9em",captionBody:"1.5em"},sZ={titleLarge:1.29,titleMedium:1.41,titleSmall:1.25,titleSmaller:1.43,titleSmallest:1.42,body:1.43,bodyBold:1.43,bodyLink:1.43,bodyLarge:1.5,caption:1.33,captionLink:1.33,label:1.3,labelSmall:1.44,captionBody:1.47},sX={titleLarge:"bold",titleMedium:"bold",titleSmall:"semiBold",titleSmaller:"semiBold",titleSmallest:"semiBold",body:"medium",bodyBold:"bold",bodyLink:"regular",bodyLarge:"medium",caption:"medium",captionLink:"regular",label:"medium",labelSmall:"medium",captionBody:"medium"},s_={titleLarge:null,titleMedium:null,titleSmall:null,titleSmaller:null,titleSmallest:null,body:null,bodyBold:null,bodyLink:"underline",bodyLarge:null,caption:null,captionLink:"underline",label:null,labelSmall:null,captionBody:null},sQ="10px",sJ={above:1,below:-1,stickyHeader:50,stickySidebar:52,vignette:51,toolbar:70,overlay:90,editorToolbar:299,editorToolbarPopover:298,drawer:100,popover:300,hint:310,modal:500,tooltip:550,toast:600,portalFactor:500,globalLoader:1e4},sq={mobile:375,tablet:768,desktop:1200,largeScreen:2e3};function s$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s1(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function s0(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError;let s2="symbol-dotted-pattern",s5="symbol-dotted-mask",s3=()=>(0,g.jsxs)("defs",{children:[(0,g.jsx)("pattern",{id:s2,patternUnits:"userSpaceOnUse",patternTransform:"rotate(90)",width:"10",height:"4",x:"0",y:"0",children:(0,g.jsx)("rect",{x:"0",y:"0",width:"10",height:"2",fill:"white"})}),(0,g.jsx)("mask",{id:s5,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(s2,")")})})]}),s7="symbol-hatch-pattern",s9="symbol-hatch-mask",s4=()=>(0,g.jsxs)("defs",{children:[(0,g.jsx)("pattern",{id:s7,patternUnits:"userSpaceOnUse",patternTransform:"rotate(-45)",width:"10",height:"3",x:"0",y:"0",children:(0,g.jsx)("rect",{x:"0",y:"0",width:"10",height:"2",fill:"white"})}),(0,g.jsx)("mask",{id:s9,children:(0,g.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(s7,")")})})]}),s6={hatched:s9,dotted:s5},s8=e=>e?"url(#".concat(s6[e],")"):void 0,ue=e=>{var{symbol:t,fill:n,fillOpacity:r=1,pattern:i}=e,o=s$(e,["symbol","fill","fillOpacity","pattern"]);return(0,g.jsx)(ut,Object.assign({symbol:t,pattern:i},o,{style:Object.assign({color:n,opacity:r},o.style)}))},ut=e=>{var{symbol:t,pattern:n}=e,r=s$(e,["symbol","pattern"]);switch(t){case"bar":return(0,g.jsx)(un,Object.assign({pattern:n},r));case"line":return(0,g.jsx)(ur,Object.assign({pattern:n},r));case"tile":return(0,g.jsx)(ui,Object.assign({pattern:n},r));case"pie":return(0,g.jsx)(uo,Object.assign({pattern:n},r));case"donut":return(0,g.jsx)(ul,Object.assign({pattern:n},r));case"point":return(0,g.jsx)(ua,Object.assign({pattern:n},r))}},un=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s4,{}),(0,g.jsx)("rect",{width:"8",height:"10",x:"2",y:"1",fill:"currentColor",mask:s8(t),rx:"2"})]}))},ur=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s3,{}),(0,g.jsx)(s4,{}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 6C1 5.44772 1.44772 5 2 5H10C10.5523 5 11 5.44772 11 6C11 6.55228 10.5523 7 10 7H2C1.44772 7 1 6.55228 1 6Z",clipRule:"evenodd",mask:s8(t)})]}))},ui=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s4,{}),(0,g.jsx)("rect",{width:"8",height:"10",x:"1",y:"10",fill:"currentColor",mask:s8(t),rx:"2",transform:"rotate(-90 1 10)"})]}))},uo=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s4,{}),(0,g.jsx)("path",{fill:"currentColor",mask:s8(t),d:"M9.525 10.475c.552 0 1.006-.45.944-.998a9.003 9.003 0 00-7.946-7.946c-.549-.062-.998.392-.998.944v7a1 1 0 001 1h7z"})]}))},ul=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s4,{}),(0,g.jsx)("path",{fill:"currentColor",mask:s8(t),d:"M9.525 10.475c.552 0 1.006-.45.944-.998a9.003 9.003 0 00-7.946-7.946c-.549-.062-.998.392-.998.944v2.25c0 .552.453.99.993 1.105A4.75 4.75 0 016.17 9.482c.116.54.553.993 1.105.993h2.25z"})]}))},ua=e=>{var{pattern:t}=e,n=s$(e,["pattern"]);return(0,g.jsxs)("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",style:Object.assign({width:"calc(12px * var(--typography-scale))",height:"calc(12px * var(--typography-scale))"},n.style),fill:"none",viewBox:"0 0 12 12",children:[(0,g.jsx)(s4,{}),(0,g.jsx)("circle",{cx:6,cy:6,r:6,fill:"currentColor",mask:s8(t)})]}))},us=12,uu={neutral:"inherit",positive:"#04F08E",negative:"#FF5C24"},uc=h.I4.div(tT(),e=>{let{$size:t}=e;return"small"===t?sx:sy},e=>{let{$appearance:t}=e;return uu[t]}),ud=e=>{let{children:t,appearance:n="neutral",size:r="regular"}=e;return(0,g.jsx)(uc,{"aria-label":"Trend",$appearance:n,$size:r,children:t})},up="–",uh="n/a",ug=e=>({plain:String(e),rich:String(e)});class uf{incrementYearIfNeeded(e){var t;null===s1(this,gv,"f")?s0(this,gv,e.getUTCFullYear(),"f"):null!==s1(this,gC,"f")&&(0,f.Y)(new Date((new Date).getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),new Date((new Date).getUTCFullYear(),s1(this,gC,"f").getUTCMonth(),s1(this,gC,"f").getUTCDate()))&&s0(this,gv,(t=s1(this,gv,"f"),++t),"f"),e.setUTCFullYear(s1(this,gv,"f")),s0(this,gC,e,"f")}constructor(){gC.set(this,null),gv.set(this,null)}}gC=new WeakMap,gv=new WeakMap;let um=e=>"propertyKey"in e&&"rowIndex"in e,uy=e=>"highlight"===e.config.type,ux=e=>"difference-arrow"===e.config.type,ub=e=>"tooltip"===e.config.type,uC={k:1e3,m:1e6,b:1e9},uv=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(t){case"none":return{base:e,suffix:""};case"auto":{let t=e>=uC.b?"b":e>=uC.m?"m":e>=uC.k?"k":"none";return uv(e,t)}default:return{base:e/uC[t],suffix:t}}},uj=e=>"--graphy-".concat((0,m.A)(e)),uA=e=>"var(".concat(uj(e),")"),uw=(e,t)=>"color-mix(in srgb, transparent, ".concat(e," ").concat(100*t,"%)"),uk=(e,t)=>"hsl(from ".concat(e," h s calc(l * ").concat(1-t,"))"),uS=(e,t)=>"hsl(from ".concat(e," h s calc(l * ").concat(1+t,"))"),uP=(e,t,n)=>"color-mix(in srgb, ".concat(e,", ").concat(t," ").concat(100*n,"%)"),uL=(e,t)=>"hsl(from ".concat(e," h calc(s - s * ").concat(t,") l)"),uM=e=>Object.entries(e.values).map(e=>{let[t,n]=e;return"".concat(uj(t),": ").concat(n,";")}).join("\n"),uO="[data-graphy-theme='dark'] &",uT="[data-graphy-theme='light'] &",uD=e=>"c".concat(e+1),uI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({key:(0,M.Ak)()},e)},uE=(e,t)=>()=>{let n=(0,O.useContext)(e);if(!n)throw Error("Unable to read context. ".concat(t," is missing."));return n},uH=e=>"x"in e&&"y"in e&&"yValue"in e,uV=e=>"highlight"in e&&"value"in e&&"label"in e&&"color"in e,uF=T.Ay.union([T.Ay.string(),T.Ay.number(),T.Ay.null()]),uB=T.Ay.intersection(T.Ay.record(uF),T.Ay.object({__graphyExternalId__:T.Ay.string().optional()})),uz=T.Ay.array(uB),uR=D.bz(),uY=D.vk(e=>{if("object"!=typeof e||null===e)return e;let t=e=>{var n;if("object"!=typeof e||null===e)return e;let r=Object.assign({},e);return"marks"in e&&(r.marks=Array.isArray(n=e.marks)?n.map(e=>{if("object"==typeof e&&null!==e&&"type"in e&&"textStyle"===e.type&&"attrs"in e&&"object"==typeof e.attrs&&null!==e.attrs&&"font"in e.attrs&&"string"==typeof e.attrs.font){let t=e.attrs.font;return Object.assign(Object.assign({},e),{attrs:Object.assign(Object.assign({},e.attrs),{font:{id:t,label:t,fontFamily:t}})})}return e}):n),"content"in e&&Array.isArray(e.content)&&(r.content=e.content.map(e=>t(e))),r};return t(e)},uR),uG=D.Ik({id:D.Yj()}),uW=D.Ik({rowIndex:D.ai(),propertyKey:D.Yj(),rowValue:uF.optional()}),uU=D.k5(["rectangle"]),uN=D.Ik({type:D.eu("shape"),shape:uU,x:D.ai(),y:D.ai(),width:D.ai(),height:D.ai(),fillColor:D.Yj(),fillOpacity:D.ai(),strokeWidth:D.ai(),order:D.k5(["below","above"])}),uK=uG.extend({config:uN}),uZ=D.k5(["rocket","clapping-hands","thumbs-up","thumbs-down","grinning-face"]),uX=D.Ik({type:D.eu("sticker"),id:uZ}),u_=uG.extend({config:uX}).merge(uW),uQ=D.Ik({type:D.eu("tooltip"),caption:uY.optional()}),uJ=uG.extend({config:uQ}).merge(uW),uq=D.k5(["data-point","series","x-value"]),u$=D.Ik({type:D.eu("highlight"),highlight:uq}),u1=uG.extend({config:u$}).merge(uW),u0=D.k5(["fade","opaque"]),u2=D.Ik({type:D.eu("text"),dimensions:D.Ik({x:D.ai(),y:D.ai(),width:D.ai()}),backgroundColor:D.Yj().optional(),backgroundColorStyle:u0.optional(),content:uY}),u5=uG.extend({config:u2}),u3=D.k5(["line-arrow","none"]),u7=D.k5(["thin","medium","thick"]),u9=D.k5(["solid","dashed"]),u4=D.Ik({color:D.Yj().nullable(),thickness:u7.default("medium"),startArrowheadStyle:u3.default("none"),lineStyle:u9.default("solid"),endArrowheadStyle:u3.default("line-arrow"),stickerStyle:D.zM().default(!1)}),u6=D.Ik({type:D.eu("arrow"),start:D.Ik({x:D.ai(),y:D.ai()}),end:D.Ik({x:D.ai(),y:D.ai()}),attributes:u4}),u8=uG.extend({config:u6}),ce=D.k5(["absolute-difference","relative-difference","proportion"]),ct=D.k5(["small","medium","large"]),cn=D.Ik({type:ce.default("relative-difference"),color:D.Yj().nullable().default(null),size:ct.default("small"),labelCrossPosition:D.ai().optional()}),cr=D.Ik({type:D.eu("difference-arrow"),start:uW,end:uW,attributes:cn.default({})}),ci=uG.extend({config:cr}),co=D.gM("type",[uX,uQ,u$,u2,u6,cr,uN]),cl=D.KC([D.eu("sticker"),D.eu("tooltip"),D.eu("highlight"),D.eu("text"),D.eu("arrow"),D.eu("difference-arrow"),D.eu("shape")]),ca=D.KC([u_,uJ,u1,u5,u8,ci,uK]),cs=D.YO(ca),cu=T.Ay.preprocess(e=>{let t=String(e).replace(/\s+/g,"");return"#"!==t.charAt(0)?"#".concat(t):t},T.Ay.string().regex(/^#([\da-f]{3}|([\da-f]{2}){2,4})$/i)).describe("hex color. E.g #f00, #0000ff, #ff0099aa"),cc=T.Ay.enum(["solid","dashed","dotted"]),cd=T.Ay.enum(["solid","hatched"]),cp=T.Ay.object({color:cu.optional(),fillType:cd.optional(),lineType:cc.optional()}),ch=T.Ay.object({series1:cp.optional(),series2:cp.optional(),series3:cp.optional(),series4:cp.optional(),series5:cp.optional(),series6:cp.optional(),series7:cp.optional(),series8:cp.optional(),series9:cp.optional(),series10:cp.optional(),series11:cp.optional(),series12:cp.optional(),series13:cp.optional(),series14:cp.optional(),series15:cp.optional(),series16:cp.optional(),series17:cp.optional(),series18:cp.optional(),series19:cp.optional(),series20:cp.optional(),waterfallStart:cp.optional(),waterfallPositive:cp.optional(),waterfallNegative:cp.optional(),waterfallTotal:cp.optional()}),cg=T.Ay.enum(["series1","series2","series3","series4","series5","series6","series7","series8","series9","series10","series11","series12","series13","series14","series15","series16","series17","series18","series19","series20"]),cf=D.Ik({id:D.Yj().default(()=>crypto.randomUUID()),name:D.Yj(),seriesConfigs:D.YO(cp).default([]),isDefault:D.zM().default(!1).optional(),darkSeriesConfigs:D.YO(cp).default([])}),cm=D.YO(cf),cy=D.Ik({brandKitId:D.Yj(),seriesMappings:D.Ik({series1:D.ai().optional(),series2:D.ai().optional(),series3:D.ai().optional(),series4:D.ai().optional(),series5:D.ai().optional(),series6:D.ai().optional(),series7:D.ai().optional(),series8:D.ai().optional(),series9:D.ai().optional(),series10:D.ai().optional(),series11:D.ai().optional(),series12:D.ai().optional(),series13:D.ai().optional(),series14:D.ai().optional(),series15:D.ai().optional(),series16:D.ai().optional(),series17:D.ai().optional(),series18:D.ai().optional(),series19:D.ai().optional(),series20:D.ai().optional(),waterfallStart:D.ai().optional(),waterfallPositive:D.ai().optional(),waterfallNegative:D.ai().optional(),waterfallTotal:D.ai().optional()})}),cx=ch,cb=D.k5(["graphy","mono","pastel","neon","custom","brandKit","customPalette"]),cC=D.k5(["red","orange","yellow","green","cyan","blue","purple","dark_purple","plum","pink"]),cv=D.k5(["neon_pink","lilac","blackberry","sun","iceland","sunset","ultraviolet","purple","ice_cream","mint","cool","fresh"]),cj=D.k5(["purple","plum","pink","red","orange","yellow","green","cyan","blue","dark_purple"]),cA=D.eu("graphy"),cw=D.Ik({theme:cb.extract(["graphy"]),palette:cA}),ck=D.k5(["green","cyan","blue","purple","plum","pink","red","orange","yellow"]),cS=D.k5(["green","cyan","blue","purple","plum","pink","red","orange","yellow"]),cP=D.eu("pastel"),cL=D.Ik({theme:cb.extract(["pastel"]),palette:cP}),cM=D.k5(["blue","cyan","green","yellow","orange","red","pink","purple","grey"]),cO=D.Ik({theme:cb.extract(["mono"]),palette:cM}),cT=cO,cD=D.k5(["cyan","pink","purple","red","orange","yellow","green","blue"]),cI=D.Ik({theme:cb.extract(["neon"]),palette:cD}),cE=cI,cH=D.k5(["start","positive","negative","total"]),cV=D.Ik({theme:cb.extract(["custom"]),palette:D.ch()}),cF=D.Ik({theme:cb.extract(["brandKit"]),palette:D.ch(),brandKitConfig:cy.optional()}),cB=D.Ik({theme:cb.extract(["customPalette"]),palette:D.Yj().min(1)}),cz=D.KC([cw,cO,cL,cI]),cR=D.KC([cw,cT,cL,cE,cV,cF,cB]),cY=D.k5(["0.8","1","1.2","1.4","1.6","1.8","2","2.5","3","4"]),cG=D.k5(["grey","fade-color"]),cW=cG.Values["fade-color"],cU=D.k5(["modern","fresh","timeless","technical","fineliner","brand"]),cN=cU.Values.modern,cK=D.Ik({id:D.Yj(),label:D.Yj(),fontFamily:D.Yj()}),cZ=D.YO(cK),cX=D.vk(e=>"string"==typeof e?{heading:{fontId:e},body:{fontId:e}}:e,D.Ik({heading:D.Ik({fontId:D.Yj().optional(),color:D.Yj().optional()}),body:D.Ik({fontId:D.Yj().optional(),color:D.Yj().optional()})})),c_=D.KC([cU,cX]),cQ=D.KC([cv,cj,cS,cM]),cJ={none:0,stroke:1,border:12},cq=D.vk(e=>"none"===e?cJ.none:"stroke"===e?cJ.stroke:"border"===e?cJ.border:e,D.ai().min(0).max(64)),c$=D.k5(["none","gradient","solid","grey","preset","custom"]),c1=D.KC([cQ,cu]),c0=D.k5(["none","gradient","solid","custom"]),c2=cR.and(D.Ik({seriesConfig:ch.optional(),textScale:cY.optional(),highlightStyle:cG.optional(),shouldHideTitle:D.zM().optional(),shouldHideSubtitle:D.zM().optional(),shouldHideCaption:D.zM().optional(),shouldHideSourceSection:D.zM().optional(),shouldHideLogo:D.zM().optional(),shouldTintBackground:D.zM().optional(),hasRoundedCorners:D.zM().optional(),disableTooltips:D.zM().optional(),disableAnimation:D.zM().optional(),font:c_.optional(),borderType:c$.optional(),borderStroke:cq.optional(),borderColor:c1.optional(),borderStyle:c0.nullish(),borderStyleName:cQ.nullish(),customBorderStyle:cu.optional()})),c5=e=>null!==e,c3=D.k5(["count","distinct","max","min","sum","mean","mode","median"]),c7=D.k5(["year","quarter","month","week","day"]),c9=D.k5(["<","<=",">",">="]),c4=D.k5(["contains","does not contain"]),c6=D.k5(["===","!=="]),c8=D.eu("within last"),de=D.KC([c9,c4,c6]),dt=D.KC([D.Yj(),D.ai(),D.p6()]),dn=D.Ik({key:D.Yj(),operator:de,value:dt}),dr=D.Ik({key:D.Yj(),operator:c8,value:D.ai(),timeUnit:c7}),di=D.KC([dn,dr]),dl=D.Ik({key:D.Yj(),originalKey:D.Yj(),isDerived:D.zM().optional(),aggregation:c3.optional()}),da=D.Ik({key:D.Yj(),timeUnit:c7.optional()}),ds=D.k5(["asc","desc"]),du=D.Ik({key:D.Yj(),direction:ds}),dc=D.KC([D.eu(0),D.eu(1),D.eu(2),D.eu(3),D.eu(4),D.eu(5),D.eu(6)]),dd=D.Ik({groupBy:da.optional(),sortBy:D.YO(du).optional(),properties:D.YO(dl),filters:D.YO(di).optional(),weekStartsOn:dc.optional()}),dp=T.Ay.enum(["line","areaStacked","bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill","combo","pie","donut","funnel","heatmap","scatter","bubble","waterfall","table","mekko"]),dh=["bar","barStacked","barStackedFill"],dg=["column","columnStacked","columnStackedFill"],df=["scatter","bubble"],dm=["pie","donut"],dy=T.Ay.enum(["linear","catmull-rom"]),dx=T.Ay.enum(["grouped-bars","stacked-bars","lines"]),db=T.Ay.enum(["trendline","average"]),dC=T.Ay.enum(["goal","custom"]),dv=T.Ay.enum(["current","average","total","conversion"]),dj=T.Ay.enum(["tail","head","none"]),dA=T.Ay.enum(["auto","small","medium","large"]),dw=T.Ay.enum(["EN_GB","EN_US"]),dk="EN_GB",dS=T.Ay.enum(["top","right","none"]),dP=T.Ay.enum(["auto","edges"]),dL=T.Ay.enum(["single","double"]),dM=T.Ay.enum(["center","left"]),dO=T.Ay.enum(["linear","exponential","logarithmic","quadratic","power","loess","polynomial"]),dT=T.Ay.enum(["empty","zero","fill"]),dD=T.Ay.object({type:dp,comboPlotType:dx.optional(),topAxisLabel:T.Ay.string().nullish(),bottomAxisLabel:T.Ay.string().nullish(),leftAxisLabel:T.Ay.string().nullish(),rightAxisLabel:T.Ay.string().nullish(),presetPowerUp:db.nullish(),customPowerUp:dC.nullish(),averageLineSeriesKey:T.Ay.string().nullish(),trendLineType:dO.optional(),headlineMetric:dv.nullish(),headlineMetricComparisonValue:dj.nullish(),headlineMetricSize:dA.optional(),xGoalValue:T.Ay.custom().nullish(),yGoalValue:T.Ay.number().nullish(),customGoalLineLabel:T.Ay.string().nullish(),customLineValue:T.Ay.number().nullish(),customLineLabel:T.Ay.string().nullish(),locale:dw.optional(),curveType:dy.optional(),pieTotalPosition:dM.nullish(),shouldStartFromZero:T.Ay.boolean().optional(),customYAxisStartFrom:T.Ay.number().nullable().optional(),customYAxisEndAt:T.Ay.number().nullable().optional(),useLogScale:T.Ay.boolean().optional(),hasGridLines:T.Ay.boolean().optional(),showStackTotals:T.Ay.boolean().optional(),showDataLabels:T.Ay.boolean().optional(),showPoints:T.Ay.boolean().optional(),showPercentageLabels:T.Ay.boolean().optional(),showCategoryLabels:T.Ay.boolean().optional(),comboPlotAxisCount:dL.optional(),sortBars:T.Ay.boolean().optional(),hideCrossAxis:T.Ay.boolean().optional(),hideMainAxis:T.Ay.boolean().optional(),yAxisLabelsMode:dP.optional(),xAxisLabelsMode:dP.optional(),reverseCrossAxisPosition:T.Ay.boolean().optional(),legendPosition:dS.nullish(),lineThickness:T.Ay.number().nullish(),pointSize:T.Ay.number().nullish(),treatEmptyValues:dT.optional()});!function(e){e.Aed="aed",e.Aud="aud",e.Bdt="bdt",e.Bhd="bhd",e.Brl="brl",e.Cad="cad",e.Chf="chf",e.Clp="clp",e.Cny="cny",e.Cop="cop",e.Czk="czk",e.Dkk="dkk",e.Egp="egp",e.Eur="eur",e.Gbp="gbp",e.Hkd="hkd",e.Huf="huf",e.Idr="idr",e.Ils="ils",e.Inr="inr",e.Jpy="jpy",e.Krw="krw",e.Kwd="kwd",e.Mxn="mxn",e.Myr="myr",e.Ngn="ngn",e.Nok="nok",e.Nzd="nzd",e.Php="php",e.Pkr="pkr",e.Pln="pln",e.Qar="qar",e.Ron="ron",e.Rub="rub",e.Sar="sar",e.Sek="sek",e.Sgd="sgd",e.Thb="thb",e.Try="try",e.Twd="twd",e.Usd="usd",e.Vnd="vnd",e.Zar="zar"}(gj||(gj={})),function(e){e.Currency="currency",e.Date="date",e.Datetime="datetime",e.Year="year",e.Quarter="quarter",e.MonthYear="month_year",e.Month="month",e.DayMonth="day_month",e.WeeklyDateRange="weekly_date_range",e.WeeklyDateRangeWithYear="weekly_date_range_with_year",e.Text="text",e.Boolean="boolean",e.Decimal="decimal",e.Duration="duration",e.Integer="integer",e.Percentage="percentage"}(gA||(gA={}));let dI=D.Ik({type:D.eu(gA.Currency),iso:D.fc(gj)}),dE=D.KC([D.eu(gA.Date),D.eu(gA.Datetime),D.eu(gA.Year),D.eu(gA.MonthYear),D.eu(gA.Month),D.eu(gA.DayMonth),D.eu(gA.WeeklyDateRange),D.eu(gA.WeeklyDateRangeWithYear),D.eu(gA.Quarter)]),dH=D.Ik({type:dE,dateFormat:D.lq(D.Yj())}),dV=D.Ik({type:D.KC([D.eu(gA.Text),D.eu(gA.Boolean),D.eu(gA.Decimal),D.eu(gA.Duration),D.eu(gA.Integer),D.eu(gA.Percentage)])}),dF=D.KC([dH,dI,dV]),dB=e=>dE.safeParse(e.type).success,dz=e=>e.type===gA.Currency,dR=D.Ik({key:D.Yj(),label:D.Yj().optional(),dataType:dF.optional(),isHidden:D.zM().optional(),aggregation:c3.optional()}),dY=D.Ik({timeUnit:c7,value:D.ai()}),dG=D.Ik({properties:D.YO(dR),isDataHorizontal:D.zM(),shouldAggregate:D.zM().optional(),groupByTimeUnit:c7.optional(),sortBy:du.optional(),rollingDateFilter:dY.nullish(),description:D.Yj().optional(),dateFormat:dw.optional()}),dW=D.k5(["auto"]).or(D.ai().min(0).max(5)),dU=D.k5(["none","auto","k","m","b"]),dN=D.Ik({decimalPlaces:dW,abbreviation:dU}),dK=e=>e.length>0,dZ=D.Ik({id:D.Yj().min(1),hex:D.Yj().regex(/^#(?:[0-9a-fA-F]{3}){1,2}$/),name:D.Yj().optional()}),dX=D.Ik({id:D.Yj(),name:D.Yj().min(1),colors:D.YO(dZ).min(1)}),d_=D.YO(dX),dQ=e=>e===gA.Text,dJ=e=>e===gA.Boolean,dq=e=>dE.safeParse(e).success,d$=e=>e===gA.Month||e===gA.DayMonth||e===gA.WeeklyDateRange,d1=e=>e===gA.Integer||e===gA.Decimal||e===gA.Percentage||e===gA.Duration||e===gA.Currency,d0=e=>d1(e)?"numeric":dq(e)?"date":"text",d2=[{label:"Last 7 days",timeUnit:"day",value:7},{label:"Last 30 days",timeUnit:"day",value:30},{label:"Last 90 days",timeUnit:"day",value:90}],d5=[{label:"Last 4 weeks",timeUnit:"week",value:4},{label:"Last 8 weeks",timeUnit:"week",value:8},{label:"Last 12 weeks",timeUnit:"week",value:12},{label:"Last 24 weeks",timeUnit:"week",value:24}],d3=[{label:"Last 3 months",timeUnit:"month",value:3},{label:"Last 6 months",timeUnit:"month",value:6},{label:"Last 12 months",timeUnit:"month",value:12}],d7={[gA.Date]:d2,[gA.Datetime]:d2,[gA.DayMonth]:d2,[gA.WeeklyDateRange]:d5,[gA.WeeklyDateRangeWithYear]:d5,[gA.Month]:d3,[gA.MonthYear]:d3,[gA.Quarter]:[{label:"Last 2 quarters",timeUnit:"quarter",value:2},{label:"Last 3 quarters",timeUnit:"quarter",value:3},{label:"Last 4 quarters",timeUnit:"quarter",value:4}],[gA.Year]:[{label:"Last 2 years",timeUnit:"year",value:2},{label:"Last 5 years",timeUnit:"year",value:5},{label:"Last 10 years",timeUnit:"year",value:10}]},d9=e=>d7[e],d4=(e,t)=>dq(e)&&d7[e].some(e=>e.timeUnit===t),d6={width:944,height:600},d8={bar:1500,barStacked:1500,barStackedFill:1500,column:1500,columnStacked:1500,columnStackedFill:1500,mekko:1500,line:4e3,areaStacked:4e3,combo:1500,heatmap:1e3,pie:1e3,donut:1e3,funnel:1e3,scatter:1500,bubble:1500,waterfall:1500,table:1/0},pe=sN[cN],pt={timeless:{id:"timeless",label:"Timeless",fontFamily:cU.enum.timeless},fresh:{id:"fresh",label:"Fresh",fontFamily:cU.enum.fresh},modern:{id:"modern",label:"Modern",fontFamily:cU.enum.modern},technical:{id:"technical",label:"Technical",fontFamily:cU.enum.technical},fineliner:{id:"fineliner",label:"Fineliner",fontFamily:cU.enum.fineliner},brand:{id:"brand",label:"Brand",fontFamily:cU.enum.brand}},pn=[pt.modern,pt.fresh,pt.timeless,pt.technical,pt.fineliner,pt.brand],pr=[pt.modern,pt.fresh,pt.timeless,pt.technical],pi=[pt.modern,pt.fresh,pt.timeless,pt.technical,pt.fineliner],po=e=>e?e in sN?sN[e]:e:pe,pl=e=>{var t,n;return e?"string"==typeof e?{heading:{fontId:e},body:{fontId:e}}:{heading:null!=(t=e.heading)?t:{fontId:cN},body:null!=(n=e.body)?n:{fontId:cN}}:{heading:{fontId:cN},body:{fontId:cN}}};!function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(gw||(gw={}));let pa="unknown.error";class ps extends Error{static toUnknownError(e,t){return e instanceof ps?(e.info=(0,y.A)(e.info,t),e):e instanceof Error?new ps(pa,"Unexpected error",e,t):new ps(pa,"Unexpected error",void 0,Object.assign(Object.assign({},t),{details:JSON.stringify(e)}))}toString(){return"".concat(this.name,": ").concat(this.message)}constructor(e,t,n,r){super(),this.code=e,this.message=t,this.cause=n,this.info=r,this.isReported=!1,this.name=this.constructor.name,this.info=Object.assign(Object.assign({},n instanceof ps&&(null==n?void 0:n.info)),r),this.message=function(e,t){return t instanceof Error?"".concat(e,"\nCaused by: ").concat(t.message):e}(this.message,this.cause),this.stack=function(e,t){return t instanceof Error?"".concat(e,"\nCause stack: ").concat(t.stack):e}(this.stack,this.cause)}}let pu=e=>e instanceof Error&&"code"in e,pc="__WATERFALL_TOTAL__",pd=e=>{let{rowIndex:t,propertyKey:n}=e;return n===pc?pc:"".concat(t,":").concat(n)},pp=e=>{if(e===pc)return{rowIndex:0,propertyKey:pc};let[t,n]=e.split(":"),r=t?Number.parseInt(t):NaN;if(!Number.isNaN(r)&&n)return{rowIndex:r,propertyKey:n};throw new ps("parse-data-point-id.error","Unable to parse data point",void 0,{dataPointId:e})},ph=e=>({borderColor:"transparent"===e?"rgba(0,0,0,0.1)":uk(e,.1),fillColor:e});function pg(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r="x"===n?"overflowX":"overflowY",i=window.getComputedStyle(e);return[i[r],i.overflow].some(e=>/auto|scroll/.test(e))?e:e.parentElement?pg(e.parentElement,n):null!=(t=document.scrollingElement)?t:document.documentElement}let pf=["/","-","."," "],pm=[["d","M","yy"],["d","MM","yy"],["d","MMMM","yy"],["dd","M","yy"],["dd","MM","yy"],["dd","MMMM","yy"],["do","MMMM","yy"],["d","M","yyyy"],["d","MM","yyyy"],["d","MMMM","yyyy"],["dd","M","yyyy"],["dd","MM","yyyy"],["dd","MMMM","yyyy"],["do","MMMM","yyyy"]],py=[["M","d","yy"],["M","dd","yy"],["MM","d","yy"],["MM","dd","yy"],["MMMM","d","yy"],["MMMM","dd","yy"],["MMMM","do","yy"],["M","d","yyyy"],["M","dd","yyyy"],["MM","d","yyyy"],["MM","dd","yyyy"],["MMMM","d","yyyy"],["MMMM","dd","yyyy"],["MMMM","do","yyyy"]],px=[["yyyy","M","d"],["yyyy","M","dd"],["yyyy","MM","d"],["yyyy","MM","dd"],["yyyy","MMMM","d"],["yyyy","MMMM","dd"],["yyyy","MMMM","do"]],pb=[["d","MMMM"],["dd","MMMM"],["do","MMMM"],["MMMM","d"],["MMMM","dd"],["MMMM","do"]],pC=[{dateFormat:"MMMM d, yyyy",type:gA.Date},{dateFormat:"MMMM dd, yyyy",type:gA.Date},{dateFormat:"MMMM do, yyyy",type:gA.Date},{dateFormat:"yyyy-MM",type:gA.MonthYear}],pv=e=>[...pC,...Object.entries({[gA.Date]:[..."EN_US"===e?[...py,...pm]:[...pm,...py],...px],[gA.Year]:[["yyyy"]],[gA.DayMonth]:pb,[gA.MonthYear]:[["MMMM","yyyy"],["yyyy","MMMM"]],[gA.Month]:[["MMMM"]],[gA.Quarter]:[["QQQ","yyyy"],["yyyy","QQQ"]]}).flatMap(e=>{let[t,n]=e;return n.flatMap(e=>pf.map(n=>({dateFormat:e.join(n),type:t})))})],pj=e=>Object.entries({[gA.WeeklyDateRange]:pb,[gA.WeeklyDateRangeWithYear]:[..."EN_US"===e?[...py,...pm]:[...pm,...py],...px]}).flatMap(e=>{let[t,n]=e;return n.flatMap(e=>pf.map(n=>({dateFormat:e.join(n),type:t})))}),pA=/^-?(\d{1,3}(,\d{3})*|\d+).?\d*(k|m|b|t)?$/i,pw=e=>!(e instanceof Date)&&!Array.isArray(e)&&"boolean"!=typeof e&&("string"==typeof e?pA.test(e)&&!Number.isNaN(Number(e.replace(/[,kmbt]/gi,""))):!Number.isNaN(Number(e))),pk={$:gj.Usd,"\xa3":gj.Gbp,"€":gj.Eur,"\xa5":gj.Jpy,"₹":gj.Inr,"₱":gj.Php,P:gj.Php,"₩":gj.Krw,"₪":gj.Ils,"₫":gj.Vnd,"₽":gj.Rub,"฿":gj.Thb,R$:gj.Brl,Rp:gj.Idr,RM:gj.Myr,"₦":gj.Ngn,zł:gj.Pln,"₺":gj.Try,kr:gj.Dkk,Fr:gj.Chf,R:gj.Zar,"د.إ":gj.Aed,"﷼":gj.Sar,Ch$:gj.Clp,NT$:gj.Twd,HK$:gj.Hkd,S$:gj.Sgd,A$:gj.Aud,C$:gj.Cad,NZ$:gj.Nzd,MX$:gj.Mxn},pS=e=>{let t=Object.keys(pk).sort((e,t)=>t.length-e.length).find(t=>e.includes(t)),n=e;if(t){let r=e.indexOf(t);0===r?n=e.slice(t.length):r===e.length-t.length?n=e.slice(0,e.length-t.length):"-"===e[0]&&1===r&&(n="-".concat(e.slice(t.length+1)))}return pA.test(n)?n.split(",").join(""):""},pP=e=>{if("string"==typeof e){let t=pS(e);return!!t.length&&pw(t)}return pw(e)},pL=/^\d{4}-\d{2}-\d{2}(T|\s)\d{1,2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|\+00:00)?$/,pM=e=>pL.test(e.trim()),pO=[[/\bJan\b/i,"January"],[/\bFeb\b/i,"February"],[/\bMar\b/i,"March"],[/\bApr\b/i,"April"],[/\bJun\b/i,"June"],[/\bJul\b/i,"July"],[/\bAug\b/i,"August"],[/\bSept?\b/i,"September"],[/\bOct\b/i,"October"],[/\bNov\b/i,"November"],[/\bDec\b/i,"December"]],pT=e=>{if("string"==typeof e){let t=e;for(let[e,n]of pO)t=t.replace(e,n);return t}return e},pD=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EN_GB",n=pT(e);return pM(n)?{type:gA.Datetime}:pv(t).find(e=>{let{dateFormat:t,type:r}=e;return!(r===gA.Month&&n.length<3)&&t&&(0,E.f)((0,V.qg)(n,t,new Date))})},pI=(e,t)=>{let n=pT(e);return!t&&pw(n)?(0,x.A)(Number(n)):"string"==typeof n?t?(0,E.f)((0,V.qg)(n,t,new Date)):!!pD(n)||pM(n)&&(0,E.f)(new Date(n)):(0,E.f)(n)},pE=/^-?\d{1,3}(?:,\d{3})*(?:\.\d+)?%?$/,pH=e=>!!pw(e)||"string"==typeof e&&pE.test(e),pV=/^\s*(19\d{2}|2[01]\d{2})\s*$/,pF=/\s*[–—]\s*|\s-\s/,pB=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EN_GB",[n,r]=e.split(pF);if(!n||!r)return;let i=pT(n).trim(),o=pT(r).trim();return pj(t).find(e=>{let{dateFormat:t}=e;if(!t)return!1;let n=(0,V.qg)(i,t,new Date),r=(0,V.qg)(o,t,new Date);if(!(0,E.f)(n)||!(0,E.f)(r))return!1;let l=new uf;l.incrementYearIfNeeded(n),l.incrementYearIfNeeded(r);let a=(0,I.c)(r,n);return!(!(0,H.v)(new Date(n.getFullYear(),1,28),{start:n,end:r})||5!==a)||6===a})},pz=(e,t)=>!!(e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t)),pR=(e,t)=>pz(e,t)&&"string"==typeof e[t],pY=(e,t)=>{let n="string"==typeof e?e.trim():e;if(pw(n))return{type:gA.Decimal};if((e=>"boolean"==typeof e||!(!pw(e)||![0,1].includes(Number(e)))||"string"==typeof e&&["true","false"].includes(e.toLowerCase()))(n))return{type:gA.Boolean};let r="string"==typeof n&&pD(n,t);return r||"string"==typeof n&&pB(n,t)||(pI(n)?{type:gA.Date}:pH(n)?{type:gA.Percentage}:pP(n)&&"string"==typeof n?{type:gA.Currency,iso:(e=>{let t=Object.keys(pk).sort((e,t)=>t.length-e.length).find(t=>e.includes(t)),n=t?pk[t]:void 0;if(!n)throw Error("Could not get currency ISO");return n})(n)}:{type:gA.Text})},pG=e=>"string"==typeof e&&""===e.trim()||null==e||"-"===e,pW=e=>{let{rows:t,properties:n}=e,r=n.every(e=>""===e.label)||0===n.length,i=t.every(e=>0===Object.keys(e).length)||0===t.length;return r&&i};function pU(){let{title:e,subtitle:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"doc",content:[Object.assign({type:"heading",attrs:{level:3}},e&&{content:[{type:"text",text:e}]}),...t?[{type:"paragraph",content:[{type:"text",text:t}]}]:[]]}}let pN=()=>[],pK=()=>({isDataHorizontal:!1,properties:[]}),pZ={type:"bar",bottomAxisLabel:null,leftAxisLabel:null,rightAxisLabel:null,curveType:"linear",topAxisLabel:null,hasGridLines:!0,presetPowerUp:null,customPowerUp:null,xGoalValue:null,yGoalValue:null,shouldStartFromZero:!1,useLogScale:!1,showStackTotals:!1,hideCrossAxis:!1,hideMainAxis:!1,showDataLabels:!1,showPercentageLabels:!1,showPoints:!1,headlineMetric:null,headlineMetricComparisonValue:"head",headlineMetricSize:"auto",averageLineSeriesKey:null,locale:dk,comboPlotType:"grouped-bars",sortBars:!1,customGoalLineLabel:null,customLineValue:null,customLineLabel:null,reverseCrossAxisPosition:!1,trendLineType:"linear",pieTotalPosition:null,customYAxisStartFrom:null,customYAxisEndAt:null,showCategoryLabels:!1,comboPlotAxisCount:"double",legendPosition:null,lineThickness:null,pointSize:null,treatEmptyValues:"empty",yAxisLabelsMode:"auto",xAxisLabelsMode:"auto"},pX=[...dh,...dg,"line","areaStacked","combo","funnel","scatter","bubble","waterfall","mekko"],p_=[...dh,...dg,...dm,"funnel","heatmap","mekko"],pQ=["line","areaStacked","scatter"],pJ=["line","areaStacked"],pq=e=>{let t=Object.assign({},pZ),n=Object.assign(Object.assign({},t),e);"barStacked"===n.type&&(t.showPercentageLabels=!0),["line","areaStacked"].includes(n.type)&&(t.shouldStartFromZero=!0),dm.includes(n.type)&&(t.showDataLabels=!0,t.showPercentageLabels=!0),"funnel"===n.type&&(t.showDataLabels=!0,t.headlineMetric="conversion"),"combo"===n.type&&(t.curveType="catmull-rom",t.comboPlotAxisCount="double"),"heatmap"===n.type&&(t.showDataLabels=!0,t.showPercentageLabels=!0);let r=Object.assign(Object.assign({},t),e);return pQ.includes(r.type)||(r.customYAxisStartFrom=null),!0===r.useLogScale&&(r.shouldStartFromZero=!1,r.customYAxisStartFrom=null),(r.shouldStartFromZero||"number"==typeof r.customYAxisStartFrom)&&(r.useLogScale=!1),"areaStacked"===r.type&&"fill"===r.treatEmptyValues&&(r.treatEmptyValues="zero"),"mekko"===r.type&&(r.treatEmptyValues="zero"),p_.includes(r.type)||(r.showPercentageLabels=!1),pX.includes(r.type)||(r.hideCrossAxis=!1,r.hideMainAxis=!1),pJ.includes(r.type)||(r.useLogScale=!1),r},p$=e=>pq(Object.assign(Object.assign({},e),{type:"column"})),p1=e=>pq(Object.assign(Object.assign({},e),{type:"barStacked"})),p0=e=>pq(Object.assign(Object.assign({},e),{type:"barStackedFill"})),p2=e=>pq(Object.assign(Object.assign({},e),{type:"column"})),p5=e=>pq(Object.assign(Object.assign({},e),{type:"line"})),p3=e=>pq(Object.assign(Object.assign({},e),{type:"pie"})),p7=e=>pq(Object.assign(Object.assign({},e),{type:"donut"})),p9=e=>pq(Object.assign(Object.assign({},e),{type:"funnel"})),p4=e=>pq(Object.assign(Object.assign({},e),{type:"combo"})),p6=e=>pq(Object.assign(Object.assign({},e),{type:"heatmap"})),p8=e=>pq(Object.assign(Object.assign({},e),{type:"table"})),he=e=>pq(Object.assign(Object.assign({},e),{type:"scatter"})),ht=e=>pq(Object.assign(Object.assign({},e),{type:"bubble"})),hn=e=>pq(Object.assign(Object.assign({},e),{type:"waterfall"})),hr=p2,hi={titleDocument:pU({title:"Untitled"}),datasetConfig:{isDataHorizontal:!1,properties:[]},data:[],config:hr()},ho={titleDocument:pU({title:"Example pie chart"}),config:p3(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Category"},{key:uD(1),label:"Value"}]}),data:[{[uD(0)]:"Headcount",[uD(1)]:"$38,456"},{[uD(0)]:"Legal",[uD(1)]:"$4,578"},{[uD(0)]:"Marketing",[uD(1)]:"$9,456"},{[uD(0)]:"Office",[uD(1)]:"$12,986"}]},hl=Object.assign(Object.assign({},ho),{config:Object.assign(Object.assign({},ho.config),{type:"donut"})}),ha={titleDocument:pU({title:"Example line chart"}),config:p5(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Month"},{key:uD(1),label:"Series 1"},{key:uD(2),label:"Series 2"}]}),data:[{[uD(0)]:"Jan",[uD(1)]:"1467",[uD(2)]:"2456"},{[uD(0)]:"Feb",[uD(1)]:"1857",[uD(2)]:"2649"},{[uD(0)]:"Mar",[uD(1)]:"2485",[uD(2)]:"2987"},{[uD(0)]:"Apr",[uD(1)]:"3456",[uD(2)]:"3256"},{[uD(0)]:"May",[uD(1)]:"4789",[uD(2)]:"4895"},{[uD(0)]:"Jun",[uD(1)]:"5431",[uD(2)]:"5781"},{[uD(0)]:"Jul",[uD(1)]:"4576",[uD(2)]:"6548"},{[uD(0)]:"Aug",[uD(1)]:"3899",[uD(2)]:"5344"},{[uD(0)]:"Sep",[uD(1)]:"3476",[uD(2)]:"4883"},{[uD(0)]:"Oct",[uD(1)]:"4235",[uD(2)]:"4561"},{[uD(0)]:"Nov",[uD(1)]:"3256",[uD(2)]:"4127"},{[uD(0)]:"Dec",[uD(1)]:"2153",[uD(2)]:"3854"}]},hs=Object.assign(Object.assign({},ha),{config:Object.assign(Object.assign({},ha.config),{type:"areaStacked"})}),hu={titleDocument:pU({title:"Example scatter chart"}),config:he(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(1),label:"Series 1"},{key:uD(2),label:"Series 2"}]}),data:[{[uD(1)]:"1467",[uD(2)]:"2456"},{[uD(1)]:"1857",[uD(2)]:"2649"},{[uD(1)]:"2485",[uD(2)]:"2987"},{[uD(1)]:"3456",[uD(2)]:"3256"},{[uD(1)]:"4789",[uD(2)]:"4895"},{[uD(1)]:"5431",[uD(2)]:"5781"},{[uD(1)]:"4576",[uD(2)]:"6548"},{[uD(1)]:"3899",[uD(2)]:"5344"},{[uD(1)]:"3476",[uD(2)]:"4883"},{[uD(1)]:"4235",[uD(2)]:"4561"},{[uD(1)]:"3256",[uD(2)]:"4127"},{[uD(1)]:"2153",[uD(2)]:"3854"}]},hc={titleDocument:pU({title:"Example bubble chart"}),config:ht(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(1),label:"Series 1"},{key:uD(2),label:"Series 2"},{key:uD(3),label:"Series 3"}]}),data:[{[uD(1)]:"1467",[uD(2)]:"2456",[uD(3)]:"10"},{[uD(1)]:"1857",[uD(2)]:"2649",[uD(3)]:"10"},{[uD(1)]:"2485",[uD(2)]:"2987",[uD(3)]:"10"},{[uD(1)]:"3456",[uD(2)]:"3256",[uD(3)]:"10"},{[uD(1)]:"4789",[uD(2)]:"4895",[uD(3)]:"10"},{[uD(1)]:"5431",[uD(2)]:"5781",[uD(3)]:"10"},{[uD(1)]:"4576",[uD(2)]:"6548",[uD(3)]:"10"},{[uD(1)]:"3899",[uD(2)]:"5344",[uD(3)]:"10"},{[uD(1)]:"3476",[uD(2)]:"4883",[uD(3)]:"10"},{[uD(1)]:"4235",[uD(2)]:"4561",[uD(3)]:"10"},{[uD(1)]:"3256",[uD(2)]:"4127",[uD(3)]:"10"},{[uD(1)]:"2153",[uD(2)]:"3854",[uD(3)]:"10"}]},hd={titleDocument:pU({title:"Example mekko chart"}),config:pq(Object.assign(Object.assign({},gk),{type:"mekko"})),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(1),label:"Category"},{key:uD(2),label:"Group A"},{key:uD(3),label:"Group B"},{key:uD(4),label:"Group C"},{key:uD(5),label:"Group D"}]}),data:[{[uD(1)]:"Category A",[uD(2)]:"15",[uD(3)]:"30",[uD(4)]:"40",[uD(5)]:"30"},{[uD(1)]:"Category B",[uD(2)]:"55",[uD(3)]:"30",[uD(4)]:"40",[uD(5)]:"15"},{[uD(1)]:"Category C",[uD(2)]:"30",[uD(3)]:"20",[uD(4)]:"25",[uD(5)]:"25"},{[uD(1)]:"Category D",[uD(2)]:"15",[uD(3)]:"15",[uD(4)]:"8",[uD(5)]:"12"}]},hp={titleDocument:pU({title:"Example waterfall chart"}),config:hn(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Label"},{key:uD(1),label:"Value"}]}),data:[{[uD(0)]:"Product revenue",[uD(1)]:"420000"},{[uD(0)]:"Services revenue",[uD(1)]:"210000"},{[uD(0)]:"Fixed costs",[uD(1)]:"-170000"},{[uD(0)]:"Variable costs",[uD(1)]:"-140000"}]},hh={titleDocument:pU({title:"Example column chart"}),config:hr(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Month"},{key:uD(1),label:"Category 1"},{key:uD(2),label:"Category 2"}]}),data:[{[uD(0)]:"Jul",[uD(1)]:"1467",[uD(2)]:"2456"},{[uD(0)]:"Aug",[uD(1)]:"1857",[uD(2)]:"2649"},{[uD(0)]:"Sep",[uD(1)]:"2485",[uD(2)]:"2987"},{[uD(0)]:"Oct",[uD(1)]:"3456",[uD(2)]:"3256"},{[uD(0)]:"Nov",[uD(1)]:"4789",[uD(2)]:"4895"},{[uD(0)]:"Dec",[uD(1)]:"5431",[uD(2)]:"5781"}]},hg=Object.assign(Object.assign({},hh),{config:Object.assign(Object.assign({},hh.config),{type:"columnStacked"})}),hf=Object.assign(Object.assign({},hh),{config:Object.assign(Object.assign({},hh.config),{type:"columnStackedFill"})}),hm=Object.assign(Object.assign({},hh),{titleDocument:pU({title:"Example bar chart"}),config:Object.assign(Object.assign({},hh.config),{type:"bar"})}),hy=Object.assign(Object.assign({},hm),{config:Object.assign(Object.assign({},hh.config),{type:"barStacked"})}),hx=Object.assign(Object.assign({},hm),{config:Object.assign(Object.assign({},hh.config),{type:"barStackedFill"})}),hb={titleDocument:pU({title:"Example funnel"}),config:p9(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Stage"},{key:uD(1),label:"Users"}]}),data:[{[uD(0)]:"Acquisition",[uD(1)]:"22000"},{[uD(0)]:"Activation",[uD(1)]:"7542"},{[uD(0)]:"Retention",[uD(1)]:"3472"},{[uD(0)]:"Referral",[uD(1)]:"1467"},{[uD(0)]:"Revenue",[uD(1)]:"500"}]},hC={titleDocument:pU({title:"Example combo chart"}),config:p4({comboPlotType:"grouped-bars"}),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Month"},{key:uD(1),label:"Bar series"},{key:uD(2),label:"Line series"}]}),data:[{[uD(0)]:"Jan",[uD(1)]:"1467",[uD(2)]:"9.8%"},{[uD(0)]:"Feb",[uD(1)]:"1857",[uD(2)]:"10.0%"},{[uD(0)]:"Mar",[uD(1)]:"2485",[uD(2)]:"10.3%"},{[uD(0)]:"Apr",[uD(1)]:"3456",[uD(2)]:"12.3%"},{[uD(0)]:"May",[uD(1)]:"4789",[uD(2)]:"16.7%"},{[uD(0)]:"Jun",[uD(1)]:"4431",[uD(2)]:"13.4%"},{[uD(0)]:"Jul",[uD(1)]:"4576",[uD(2)]:"14.8%"},{[uD(0)]:"Aug",[uD(1)]:"3899",[uD(2)]:"16.1%"},{[uD(0)]:"Sep",[uD(1)]:"3476",[uD(2)]:"20.7%"},{[uD(0)]:"Oct",[uD(1)]:"4235",[uD(2)]:"20.1%"},{[uD(0)]:"Nov",[uD(1)]:"6256",[uD(2)]:"24.9%"},{[uD(0)]:"Dec",[uD(1)]:"7153",[uD(2)]:"25.3%"}]},hv={titleDocument:pU({title:"Example combo chart"}),config:p4({comboPlotType:"stacked-bars"}),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Month"},{key:uD(1),label:"Bar series 1"},{key:uD(2),label:"Bar series 2"},{key:uD(3),label:"Line series"}]}),data:[{[uD(0)]:"Jan",[uD(1)]:"1467",[uD(2)]:"2435",[uD(3)]:"9.8%"},{[uD(0)]:"Feb",[uD(1)]:"1857",[uD(2)]:"1467",[uD(3)]:"10.0%"},{[uD(0)]:"Mar",[uD(1)]:"2485",[uD(2)]:"1857",[uD(3)]:"10.3%"},{[uD(0)]:"Apr",[uD(1)]:"3456",[uD(2)]:"2485",[uD(3)]:"12.3%"},{[uD(0)]:"May",[uD(1)]:"4789",[uD(2)]:"3456",[uD(3)]:"16.7%"},{[uD(0)]:"Jun",[uD(1)]:"4431",[uD(2)]:"4789",[uD(3)]:"13.4%"},{[uD(0)]:"Jul",[uD(1)]:"4576",[uD(2)]:"4431",[uD(3)]:"14.8%"},{[uD(0)]:"Aug",[uD(1)]:"3899",[uD(2)]:"4576",[uD(3)]:"16.1%"},{[uD(0)]:"Sep",[uD(1)]:"3476",[uD(2)]:"3899",[uD(3)]:"20.7%"},{[uD(0)]:"Oct",[uD(1)]:"4235",[uD(2)]:"3476",[uD(3)]:"20.1%"},{[uD(0)]:"Nov",[uD(1)]:"6256",[uD(2)]:"4235",[uD(3)]:"24.9%"},{[uD(0)]:"Dec",[uD(1)]:"7153",[uD(2)]:"6256",[uD(3)]:"25.3%"}]},hj={titleDocument:pU({title:"Example combo chart"}),config:p4({comboPlotType:"lines"}),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!1,properties:[{key:uD(0),label:"Month"},{key:uD(1),label:"Line series 1"},{key:uD(2),label:"Line series 2"}]}),data:[{[uD(0)]:"Jan",[uD(1)]:"1467",[uD(2)]:"9.8%"},{[uD(0)]:"Feb",[uD(1)]:"1857",[uD(2)]:"10.0%"},{[uD(0)]:"Mar",[uD(1)]:"2485",[uD(2)]:"10.3%"},{[uD(0)]:"Apr",[uD(1)]:"3456",[uD(2)]:"12.3%"},{[uD(0)]:"May",[uD(1)]:"4789",[uD(2)]:"16.7%"},{[uD(0)]:"Jun",[uD(1)]:"4431",[uD(2)]:"13.4%"},{[uD(0)]:"Jul",[uD(1)]:"4576",[uD(2)]:"14.8%"},{[uD(0)]:"Aug",[uD(1)]:"3899",[uD(2)]:"16.1%"},{[uD(0)]:"Sep",[uD(1)]:"3476",[uD(2)]:"20.7%"},{[uD(0)]:"Oct",[uD(1)]:"4235",[uD(2)]:"20.1%"},{[uD(0)]:"Nov",[uD(1)]:"6256",[uD(2)]:"24.9%"},{[uD(0)]:"Dec",[uD(1)]:"7153",[uD(2)]:"25.3%"}]},hA={titleDocument:pU({title:"Example heatmap"}),config:p6(),datasetConfig:(0,y.A)({isDataHorizontal:!1,properties:[]},{isDataHorizontal:!0,properties:[{key:uD(0),label:""},{key:uD(1),label:"Cohort 1"},{key:uD(2),label:"Cohort 2"},{key:uD(3),label:"Cohort 3"},{key:uD(4),label:"Cohort 4"},{key:uD(5),label:"Cohort 5"},{key:uD(6),label:"Cohort 6"},{key:uD(7),label:"Cohort 7"},{key:uD(8),label:"Cohort 8"}]}),data:[{[uD(0)]:"Week 1",[uD(1)]:"86%",[uD(2)]:"82%",[uD(3)]:"85%",[uD(4)]:"80%",[uD(5)]:"88%",[uD(6)]:"85%",[uD(7)]:"83%",[uD(8)]:"85%"},{[uD(0)]:"Week 2",[uD(1)]:"70%",[uD(2)]:"71%",[uD(3)]:"73%",[uD(4)]:"73%",[uD(5)]:"72%",[uD(6)]:"78%",[uD(7)]:"79%",[uD(8)]:"77%"},{[uD(0)]:"Week 3",[uD(1)]:"66%",[uD(2)]:"65%",[uD(3)]:"64%",[uD(4)]:"61%",[uD(5)]:"64%",[uD(6)]:"67%",[uD(7)]:"70%",[uD(8)]:"60%"},{[uD(0)]:"Week 4",[uD(1)]:"59%",[uD(2)]:"59%",[uD(3)]:"60%",[uD(4)]:"50%",[uD(5)]:"50%",[uD(6)]:"57%",[uD(7)]:"59%",[uD(8)]:"54%"},{[uD(0)]:"Week 5",[uD(1)]:"49%",[uD(2)]:"44%",[uD(3)]:"49%",[uD(4)]:"46%",[uD(5)]:"41%",[uD(6)]:"41%",[uD(7)]:"47%",[uD(8)]:"43%"},{[uD(0)]:"Week 6",[uD(1)]:"41%",[uD(2)]:"40%",[uD(3)]:"50%",[uD(4)]:"50%",[uD(5)]:"45%",[uD(6)]:"47%",[uD(7)]:"44%",[uD(8)]:"40%"},{[uD(0)]:"Week 7",[uD(1)]:"46%",[uD(2)]:"48%",[uD(3)]:"48%",[uD(4)]:"44%",[uD(5)]:"49%",[uD(6)]:"40%",[uD(7)]:"47%",[uD(8)]:"46%"},{[uD(0)]:"Week 8",[uD(1)]:"48%",[uD(2)]:"44%",[uD(3)]:"41%",[uD(4)]:"43%",[uD(5)]:"50%",[uD(6)]:"43%",[uD(7)]:"49%",[uD(8)]:"50%"}]},hw=Object.assign(Object.assign({},hm),{config:p8(),titleDocument:pU({title:"Example table"})}),hk=[hm,hh,hy,hx,hh,hg,hf,ha,hs,ho,hl,hb,hC,hv,hj,hA,hw,hu,hc,hp,hd],hS=(e,t)=>hk.some(n=>(0,b.A)({data:e,properties:t},{data:n.data,properties:n.datasetConfig.properties})),hP=(e,t)=>{var n,r;return hL(e,t)>(null!=(r=d8[null!=(n=t.type)?n:"line"])?r:1/0)},hL=(e,t)=>{var n,r,i,o;if(!t.type)return e.length;switch(t.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"combo":case"scatter":case"mekko":case"heatmap":case"bubble":case"funnel":case"waterfall":return e.length*(null!=(r=null==(n=t.yAxisProperties)?void 0:n.length)?r:1);case"pie":case"donut":default:return e.length;case"table":return e.length*(null!=(o=null==(i=t.columns)?void 0:i.length)?o:1)}},hM=e=>{let t=Object.entries(e);return!t.length||!t.some(e=>{let[t,n]=e;return!pG(n)&&"__graphyExternalId__"!==t})},hO=e=>!hM(e),hT=()=>"undefined"!=typeof navigator&&navigator.maxTouchPoints>0,hD=e=>"pie"!==e.type&&"donut"!==e.type&&"table"!==e.type,hI=e=>"pie"===e.type||"donut"===e.type,hE=e=>{var t,n,r;if(![...dh,...dg].includes(e.type)||!1===hD(e)||1!==e.yAxisProperties.length)return!1;let i=null==(r=null==(n=null==(t=e.xAxisProperties)?void 0:t[0])?void 0:n.dataType)?void 0:r.type;return!!i&&!dq(i)&&!d1(i)},hH=[["day",[gA.Datetime]],["week",[gA.Date,gA.DayMonth]],["month",[gA.WeeklyDateRange,gA.WeeklyDateRangeWithYear]],["quarter",[gA.Month,gA.MonthYear]],["year",[gA.Quarter]]],hV=(e,t)=>{let n=hH.findIndex(t=>{let[n]=t;return n===e}),r=hH.findIndex(e=>{let[,n]=e;return n.includes(t)});if(-1===n)throw Error("Invalid time unit: ".concat(e));return -1!==r&&n>=r},hF=(e,t)=>{let{bottom:n,top:r,left:i,right:o}=e.getBoundingClientRect(),l=(t||document.body).getBoundingClientRect();return r>=l.top&&i>=l.left&&n<=l.bottom&&o<=l.right};function hB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=2*e*Math.PI-Math.PI/2;return{x:n+t*Math.cos(i),y:r+t*Math.sin(i)}}let hz=e=>Math.round(10*e),hR=(e,t,n)=>{if(!n)return e;let r=t.map(e=>e[n]),i=!1,o=e.map(e=>{if(um(e)){let t=((e,t)=>{if(void 0===e.rowValue||t[e.rowIndex]===e.rowValue)return e;let n=t.indexOf(e.rowValue);if(-1===n){let n=t[e.rowIndex];return void 0!==n?Object.assign(Object.assign({},e),{rowValue:n}):e}return Object.assign(Object.assign({},e),{rowIndex:n})})(e,r);if(t!==e)return i=!0,t}return e});return i?o:e},hY=(0,h.AH)(tD(),sQ),hG=(0,h.i7)(tI()),hW=(0,h.AH)(tE(),uA("grey70"),hG),hU=(0,h.AH)(tH(),uA("grey70"),hG),hN=e=>Math.round(.8*e*10),hK=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return"".concat((.8*e).toFixed(1),"em")},hZ=e=>{var t;let n=null!=(t=window.devicePixelRatio)?t:1;return Math.round(e*n)/n},hX=(e,t)=>{switch(t){case"day":return gA.Date;case"week":return gA.WeeklyDateRange;case"month":return d$(e)?gA.Month:gA.MonthYear;case"quarter":return gA.Quarter;case"year":return gA.Year}},h_=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=e.length-1;for(let o=i;o>r;o--){let r=e[o];if((null==(n=r.label)?void 0:n.trim())||t.some(e=>!pG(e[r.key])))break;i=o-1}return i===e.length-1?e:e.slice(0,i+1)},hQ=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e.length-1;for(let r=n;r>t&&hM(e[r]);r--)n=r-1;return n===e.length-1?e:e.slice(0,n+1)},hJ=(e,t,n)=>{var r;let i=null==(r=e[0])?void 0:r.key;t=hQ(t);let o=i?Array.from({length:t.length+1},(n,r)=>{var o,l,a;return uI({label:0===r?null==(o=e[0])?void 0:o.label:null==(a=null==(l=t[r-1])?void 0:l[i])?void 0:a.toString()})}):[],l=Array.from({length:e.length-1},(n,r)=>Object.fromEntries(o.map((n,i)=>{var o,l,a,s,u;let c;if(0===i)c=null!=(l=null==(o=e[r+1])?void 0:o.label)?l:null;else{let n=null==(a=e[r+1])?void 0:a.key;c=n&&null!=(u=null==(s=t[i-1])?void 0:s[n])?u:null}return[n.key,c]}))),a=n.reduce((t,n)=>{var r;if(!um(n))return t.push(n),t;let i=e.findIndex(e=>e.key===n.propertyKey)-1,l=null==(r=o[n.rowIndex+1])?void 0:r.key;return i>=0&&l&&t.push(Object.assign(Object.assign({},n),{propertyKey:l,rowIndex:i})),t},[]);return l=hQ(l),{properties:o=h_(o,l),data:l,annotations:a}},hq=(0,h.AH)(tV()),h$=()=>{let{innerWidth:e}=window;return e{let t={isMobile:!1,isTablet:!1,isDesktop:!1,isLargeScreen:!1};switch(e){case"mobile":return Object.assign(Object.assign({},t),{isMobile:!0});case"tablet":return Object.assign(Object.assign({},t),{isTablet:!0});case"desktop":return Object.assign(Object.assign({},t),{isDesktop:!0});case"largeScreen":return Object.assign(Object.assign({},t),{isLargeScreen:!0})}},h0=()=>{let e=(0,O.useRef)(h$()),[t,n]=(0,O.useState)(()=>h1(e.current));return(0,O.useEffect)(()=>{let t=()=>{let t=h$();t!==e.current&&(e.current=t,n(h1(t)))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),t},h2={textPrimary:uA("white"),textSecondary:uw(uA("textPrimary"),.8),textDisabled:uw(uA("textPrimary"),.5),border100:uA("grey0"),border10:uw(uA("grey0"),.1),brand:uA("purple50"),success:uA("green50"),warning:uA("amber50"),alert:uA("red50"),sunkenBackground:uA("grey100"),defaultBackground:uA("grey90"),raisedBackground:uA("grey80"),overlayBackground:uA("grey90"),overlayBorderGradient:uA("greyGradient80")},h5={graphBackground:uA("grey100"),gridLineColor:uA("border10"),hoverGuideLineColor:uA("grey0"),originLineColor:uA("grey0"),targetLineColor:uA("border100"),targetLineMarkerColor:uA("border100"),legendBackground:uA("defaultBackground"),legendBorderColor:uw(uA("grey0"),.1),legendTextColor:uA("textPrimary"),dimmedSeriesLabelTextColor:uA("textDisabled"),dimmedSeriesLabelLineColor:uA("grey60"),trendNegativeColor:uA("red60"),trendPositiveColor:uA("green60"),tooltipBackground:uA("grey70"),tooltipBorderColor:uA("grey60"),tooltipHeadingTextColor:uA("textPrimary"),tooltipLabelTextColor:uA("textSecondary"),tooltipValueTextColor:uA("textPrimary"),graphTypeIconAccentColor:uA("purple30"),heatmapEmptyTileBackground:uA("grey80"),stackedBarHoverBorderColor:uA("grey0"),defaultArrowAnnotationColor:uA("white"),annotationFrameBorderColor:uA("blue60"),annotationMenuTriggerIconColor:uA("white")},h3={id:"dark",colorScheme:"dark",values:Object.assign(Object.assign(Object.assign(Object.assign({},{transparent:"transparent",white:"#ffffff",black:"#000000",grey100:"#000000",grey95:"#0D0D0D",grey90:"#1A1A1A",grey85:"#1F1F1F",grey80:"#2A2A2A",grey75:"#2e2e2e",grey70:"#353535",grey60:"#494949",grey50:"#6F6F6F",grey0:"#ffffff",red60:"#CB3333",red50:"#F93939",amber70:"#f48135",amber50:"#FEAE47",amber40:"#FFC849",amber30:"#ffd061",green60:"#0AC600",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE"}),{greyGradient80:"linear-gradient(to top, #222429, #31353f)"}),h2),h5),canvasColors:[{id:"default",label:"White",value:"#FFFFFF"},{id:"blue",label:"Blue",value:"#60a5fa"},{id:"cyan",label:"Cyan",value:"#22d3ee"},{id:"green",label:"Green",value:"#34d399"},{id:"yellow",label:"Yellow",value:"#FFC800"},{id:"orange",label:"Orange",value:"#fb923c"},{id:"red",label:"Red",value:"#f87171"},{id:"pink",label:"Pink",value:"#F979D9"},{id:"purple",label:"Purple",value:"#a78bfa"},{id:"gray",label:"Gray",value:"#a8a29e"},{id:"inverse",label:"Black",value:"#000000"}],defaultAnnotationColorIds:{arrowStroke:"black",shapeFill:"blue"}},h7={textPrimary:uA("black"),textSecondary:uw(uA("textPrimary"),.6),textDisabled:uw(uA("textPrimary"),.5),brand:uA("purple50"),success:uA("green50"),warning:uA("amber50"),alert:uA("red50"),border100:uA("grey0"),border10:uw(uA("grey0"),.1),sunkenBackground:uA("grey90"),defaultBackground:uA("grey100"),raisedBackground:uA("grey85"),overlayBackground:uA("grey100"),overlayBorderGradient:"none"},h9={graphBackground:uA("grey100"),gridLineColor:uA("border10"),hoverGuideLineColor:uA("grey0"),originLineColor:uA("grey0"),targetLineColor:uA("border100"),targetLineMarkerColor:"#A0A6C5",legendBackground:uA("defaultBackground"),legendBorderColor:uA("border10"),legendTextColor:uA("textPrimary"),dimmedSeriesLabelTextColor:uA("textDisabled"),dimmedSeriesLabelLineColor:uA("grey60"),trendNegativeColor:uA("red60"),trendPositiveColor:uA("green60"),tooltipBackground:"#333",tooltipBorderColor:"#47474B",tooltipHeadingTextColor:"#fff",tooltipLabelTextColor:"#d5d6d9",tooltipValueTextColor:"#fff",graphTypeIconAccentColor:uA("amber70"),heatmapEmptyTileBackground:uA("grey80"),stackedBarHoverBorderColor:uA("grey0"),defaultArrowAnnotationColor:uA("black"),annotationFrameBorderColor:uA("blue60"),annotationMenuTriggerIconColor:"#3d414c"},h4={id:"light",colorScheme:"light",values:Object.assign(Object.assign(Object.assign(Object.assign({},{transparent:"transparent",white:"#ffffff",black:"#000000",grey100:"#FFFFFF",grey95:"#FCFCFC",grey90:"#FAFAFA",grey85:"#F5F5F5",grey80:"#F0F0F0",grey75:"#e8e8e8",grey70:"#E5E5E5",grey60:"#CCCCCC",grey50:"#C4C4C4",grey0:"#1D2129",red60:"#E14B49",red50:"#F93939",amber70:"#FFBA8C",amber50:"#FFC849",amber40:"#FEAE47",amber30:"#e7a816",green60:"#06B299",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE"}),{greyGradient80:"linear-gradient(to top, #F0F0F1, #F9F9FF)"}),h7),h9),canvasColors:[{id:"default",label:"Black",value:"#000000"},{id:"blue",label:"Blue",value:"#3b82f6"},{id:"cyan",label:"Cyan",value:"#06b6d4"},{id:"green",label:"Green",value:"#10b981"},{id:"yellow",label:"Yellow",value:"#E5B400"},{id:"orange",label:"Orange",value:"#f97316"},{id:"red",label:"Red",value:"#ef4444"},{id:"pink",label:"Pink",value:"#E845BF"},{id:"purple",label:"Purple",value:"#8b5cf6"},{id:"gray",label:"Gray",value:"#78716c"},{id:"inverse",label:"White",value:"#ffffff"}],defaultAnnotationColorIds:{arrowStroke:"black",shapeFill:"blue"}},h6={TINT:{light:.1,dark:.1},GRADIENT:{light:.1,dark:.1}},h8=(e,t)=>{let n=h6.TINT[t],r="dark"===t?(0,F.e$)(e,n):(0,F.a)(e,n);return(0,F.nj)(r).toUpperCase()},ge=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,r=h6.GRADIENT[t],i="dark"===t?(0,F.e$)(e,r):(0,F.a)(e,r);return{original:e,from:(0,F.nj)(e).toUpperCase(),to:(0,F.nj)(i).toUpperCase(),gradient:"linear-gradient(".concat(n,"deg, ").concat(e," 0%, ").concat(i," 100%)")}},gt={red:"#E83562",orange:"#F38650",yellow:"#FBBC30",green:"#31FCB4",cyan:"#40F8FF",blue:"#279EFF",purple:"#B399FD",dark_purple:"#6D48D2",plum:"#C82184",pink:"#FC8497"},gn={green:"#B2DDC9",cyan:"#A2D5E2",blue:"#AAC4FF",purple:"#B2A4FF",plum:"#DCA8C7",pink:"#FFCCD3",red:"#FFADAD",orange:"#FFDEB4",yellow:"#FDF7C3"},gr={grey900:"#1c1917",grey800:"#292524",grey700:"#44403c",grey600:"#57534e",grey500:"#78716c",grey400:"#a8a29e",grey300:"#d6d3d1",grey200:"#e7e5e4",grey100:"#f5f5f4",grey50:"#fafaf9",red900:"#7f1d1d",red800:"#991b1b",red700:"#b91c1c",red600:"#dc2626",red500:"#ef4444",red400:"#f87171",red300:"#fca5a5",red200:"#fecaca",red100:"#fee2e2",red50:"#fef2f2",orange900:"#7c2d12",orange800:"#9a3412",orange700:"#c2410c",orange600:"#ea580c",orange500:"#f97316",orange400:"#fb923c",orange300:"#fdba74",orange200:"#fed7aa",orange100:"#ffedd5",orange50:"#fff7ed",yellow900:"#553B0C",yellow800:"#6F4B08",yellow700:"#8D6300",yellow600:"#BD8A00",yellow500:"#E5B400",yellow400:"#FFC800",yellow300:"#FBDA2B",yellow200:"#FEED72",yellow100:"#FEF8B4",yellow50:"#FEFCE2",green900:"#064e3b",green800:"#065f46",green700:"#047857",green600:"#059669",green500:"#10b981",green400:"#34d399",green300:"#6ee7b7",green200:"#a7f3d0",green100:"#d1fae5",green50:"#ecfdf5",cyan900:"#164e63",cyan800:"#155e75",cyan700:"#0e7490",cyan600:"#0891B2",cyan500:"#06b6d4",cyan400:"#22d3ee",cyan300:"#67e8f9",cyan200:"#a5f3fc",cyan100:"#cffafe",cyan50:"#ecfeff",blue900:"#1e3a8a",blue800:"#1e40af",blue700:"#1d4ed8",blue600:"#2563eb",blue500:"#3b82f6",blue400:"#60a5fa",blue300:"#93c5fd",blue200:"#bfdbfe",blue100:"#dbeafe",blue50:"#eff6ff",purple900:"#4c1d95",purple800:"#5b21b6",purple700:"#6d28d9",purple600:"#7c3aed",purple500:"#8b5cf6",purple400:"#a78bfa",purple300:"#c4b5fd",purple200:"#ddd6fe",purple100:"#ede9fe",purple50:"#f5f3ff",pink900:"#751A5E",pink800:"#8F1972",pink700:"#AF1C8A",pink600:"#D326A8",pink500:"#E845BF",pink400:"#F979D9",pink300:"#FCABE8",pink200:"#FED0F3",pink100:"#FFE8F9",pink50:"#FFF4FC"},gi={cyan:"#22D3EE",pink:"#F377EF",purple:"#6528F7",red:"#FB2576",orange:"#FF9300",yellow:"#FBFF00",green:"#06FF00",blue:"#0079FF"},go=[gt.purple,gt.pink,gt.yellow,gt.blue,gt.red,gt.cyan,gt.orange,gt.plum,gt.green,gt.dark_purple],gl=[gn.green,gn.purple,gn.red,gn.cyan,gn.pink,gn.blue,gn.orange,gn.plum,gn.yellow],ga=[gi.cyan,gi.pink,gi.purple,gi.red,gi.orange,gi.yellow,gi.green,gi.blue],gs=["#84D1FC","#84FC89","#FC8497","#84D1FC"],gu=[gr.grey200,gn.green,gn.red,gr.grey200],gc=[gi.cyan,gi.green,gi.red,gi.cyan],gd=gt.purple,gp=["series1","series2","series3","series4","series5","series6","series7","series8","series9","series10","series11","series12","series13","series14","series15","series16","series17","series18","series19","series20"],gh=["waterfallStart","waterfallPositive","waterfallNegative","waterfallTotal"],gg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="waterfall"===t?gh:gp,r=n.map(t=>{var n;return null==(n=e[t])?void 0:n.color}).filter(e=>!!e);return 0===r.length?"waterfall"===t?gs:go:n.map((e,t)=>r[t%r.length])},gf=e=>e.startsWith("waterfall")?gs[Math.max(gh.findIndex(t=>t===e),0)]:go[Math.max(gp.findIndex(t=>t===e),0)],gm=e=>{let t=cu.safeParse(e.borderColor);return t.success?t.data:gd},gy=e=>{switch(e){case"waterfallStart":return"Start";case"waterfallPositive":return"Positive";case"waterfallNegative":return"Negative";case"waterfallTotal":return"Total";default:return e}},gx={lilac:{backgroundImage:"linear-gradient(94deg, #C9C0F7 -2.94%, #F6E6FD 92.51%)"},neon_pink:{backgroundImage:"linear-gradient(93deg, #E04A95 2.61%, #FD7F92 97.51%)"},blackberry:{backgroundImage:"linear-gradient(132deg, #9F9FED 2.98%, #B9E6FF 97.65%)"},sun:{backgroundImage:"linear-gradient(139deg, #FCDB61 5.51%, #FB9C65 97.21%)"},iceland:{backgroundImage:"linear-gradient(94deg, #29CDA8 -2.94%, #52C9D2 92.51%)"},sunset:{backgroundImage:"linear-gradient(138deg, #FCDB62 5.77%, #FD8091 99.91%)"},ultraviolet:{backgroundImage:"linear-gradient(132deg, #D167D8 2.98%, #6584E6 97.65%)"},purple:{backgroundImage:"linear-gradient(203.63deg, #BBADFD 15.22%, #BE9AF0 81.52%)"},ice_cream:{backgroundImage:"linear-gradient(119.34deg, #FC7E91 3.68%, #FCD1B1 116.76%)"},mint:{backgroundImage:"linear-gradient(93.55deg, #25CDA5 -6.07%, #58C8D8 113.6%)"},cool:{backgroundImage:"linear-gradient(93.55deg, #3F8EEB -6.07%, #58C8D8 113.6%)"},fresh:{backgroundImage:"linear-gradient(114.37deg, #A4A4EE 4.32%, #58C8D8 87.71%)"}},gb=e=>{var t;let{colorScheme:n="dark",borderType:r,borderColor:i,theme:o,seriesConfig:l}=e;if(r===c$.enum.grey)return{backgroundColor:"dark"===n?h3.values.grey70:h4.values.grey70};if(!i)return null;if(i.startsWith("#")){if(r===c$.enum.solid)return{backgroundColor:h8(i,n)};if(r===c$.enum.custom)return{backgroundColor:i}}if(r===c$.enum.preset&&Object.keys(gx).includes(i))return gx[i];if(r===c$.enum.gradient&&i.startsWith("#")){let{gradient:e}=ge(i,n);return{backgroundImage:e}}if(l&&i in l){let e=null==(t=l[i])?void 0:t.color;if(e)return{backgroundColor:e}}if(!i.startsWith("#")){if(Object.keys(gx).includes(i))return gx[i];if("graphy"===o&&Object.keys(gt).includes(i)||"mono"===o&&Object.keys(gt).includes(i))return{backgroundColor:gt[i]};if("pastel"===o&&Object.keys(gn).includes(i))return{backgroundColor:gn[i]}}return{backgroundColor:gd}};var gC,gv,gj,gA,gw,gk,gS,gP={exports:{}},gL={},gM=(r||(r=1,gS||(gS=1,function(e){function t(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(!(0>>1;ri(s,n))ui(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else{if(!(ui(c,n)))break;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,p=3,h=!1,g=!1,f=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(s,i)}i=n(u)}}function C(e){if(f=!1,b(e),!g)if(null!==n(s))g=!0,D(v);else{var t=n(u);null!==t&&I(C,t.startTime-e)}}function v(t,i){g=!1,f&&(f=!1,y(k),k=-1),h=!0;var o=p;try{for(b(i),d=n(s);null!==d&&(!(d.expirationTime>i)||t&&!L());){var l=d.callback;if("function"==typeof l){d.callback=null,p=d.priorityLevel;var a=l(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof a?d.callback=a:d===n(s)&&r(s),b(i)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&I(C,m.startTime-i),c=!1}return c}finally{d=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,A=!1,w=null,k=-1,S=5,P=-1;function L(){return!(e.unstable_now()-Pe||125l?(r.sortIndex=o,t(u,r),null===n(s)&&r===n(u)&&(f?(y(k),k=-1):f=!0,I(C,o-l))):(r.sortIndex=a,t(s,r),g||h||(g=!0,D(v))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(gL)),gP.exports=gL),gP.exports);let gO=Symbol(),gT=Symbol(),gD=/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?O.useEffect:O.useLayoutEffect,gI=gM.unstable_runWithPriority?e=>{try{gM.unstable_runWithPriority(gM.unstable_NormalPriority,e)}catch(t){if("Not implemented."!==t.message)throw t;e()}}:e=>e(),gE=e=>e;function gH(e){var t;let n=(0,O.createContext)({[gO]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});return n[gT]=n.Provider,t=n.Provider,n.Provider=e=>{let{value:n,children:r}=e,i=(0,O.useRef)(n),o=(0,O.useRef)(0),[l,a]=(0,O.useState)(null);l&&(l(n),a(null));let s=(0,O.useRef)();if(!s.current){let e=new Set;s.current={[gO]:{v:i,n:o,l:e,u:(t,n)=>{o.current+=1;let r={n:o.current};(null==n?void 0:n.suspense)&&(r.n*=-1,r.p=new Promise(e=>{a(()=>t=>{r.v=t,delete r.p,e(t)})})),e.forEach(e=>e(r)),t()}}}}return gD(()=>{i.current=n,o.current+=1,gI(()=>{s.current[gO].l.forEach(e=>{e({n:o.current,v:n})})})},[n]),(0,O.createElement)(t,{value:s.current},r)},delete n.Consumer,n}function gV(e,t){let{v:{current:n},n:{current:r},l:i}=(0,O.useContext)(e)[gO],o=t(n),[l,a]=(0,O.useReducer)((e,i)=>{if(!i)return[n,o];if("p"in i)throw i.p;if(i.n===r)return Object.is(e[1],o)?e:[n,o];try{if("v"in i){if(Object.is(e[0],i.v))return e;let n=t(i.v);return Object.is(e[1],n)?e:[i.v,n]}}catch(e){}return[...e]},[n,o]);return Object.is(l[1],o)||a(),gD(()=>(i.add(a),()=>{i.delete(a)}),[i]),l[1]}let gF=gH(null),gB=()=>gV(gF,gE),gz=e=>gV(gF,t=>{if(!t)throw Error("useGraphState must be used within a GraphProvider");return e(t)}),gR=e=>gV(gF,t=>{if(t)return e(t)}),gY=()=>{let e=gz(e=>e.appearance),t=gz(e=>e.theme.colorScheme);return gb(Object.assign(Object.assign({},e),{colorScheme:t}))},gG=e=>{let t=(0,O.useRef)(e);return(0,O.useEffect)(()=>{t.current=e},[e]),t},gW=e=>{let t=gG(e);(0,O.useEffect)(()=>()=>{t.current()},[t])},gU=(e,t)=>{let n=gG(e),r=(0,O.useRef)(null),i=(0,O.useCallback)(function(){for(var e=arguments.length,i=Array(e),o=0;o{n.current(...i)},t)):(n.current(...i),r.current=setTimeout(()=>{},t))},[t,n]);return(0,O.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),i},gN=e=>{let{onDrag:t,onDragStart:n,onDragEnd:r,blockPagePointerEvents:i,preventDefault:o=!0,dragThreshold:l=5,onPointerDown:a}=e,s=(0,O.useRef)(null),u=(0,O.useRef)();return{dragProps:{onPointerDown:e=>{null==a||a(e),o&&(e.preventDefault(),e.stopPropagation());let c=!1,d=()=>{c=!0,i&&(s.current=(()=>{let e=document.createElement("div");return e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.zIndex="9999",e.style.cursor="grabbing",e})(),document.body.appendChild(s.current)),null==n||n()};0===l&&d();let p=e.clientX,h=e.clientY,g=e=>{o&&(e.preventDefault(),e.stopPropagation());let n=e.clientX-p,r=e.clientY-h;!c&&(Math.abs(n)>l||Math.abs(r)>l)&&d(),c&&(null==t||t({deltaX:n,deltaY:r}))},f=()=>{s.current&&(document.body.removeChild(s.current),s.current=null),window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",m)},m=e=>{let t=e.clientX-p,n=e.clientY-h;null==r||r({deltaX:t,deltaY:n}),f()};window.addEventListener("pointermove",g),window.addEventListener("pointerup",m),u.current=()=>{f(),u.current=void 0}}},cleanup:()=>{var e;return null==(e=u.current)?void 0:e.call(u)}}};function gK(){let{onFocus:e,onBlur:t,shouldEncapsulate:n=!0,tabIndex:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[i,o]=(0,O.useState)(!1);return{hasFocus:i,focusBindings:(0,O.useMemo)(()=>({tabIndex:r,onFocus:t=>{let r=t.relatedTarget||document.activeElement,i=t.currentTarget!==r&&t.currentTarget.contains(r);n&&r&&i||(o(!0),null==e||e(t))},onBlur:e=>{let r=e.relatedTarget||document.activeElement;n&&r&&e.currentTarget.contains(r)||(o(!1),null==t||t(e))}}),[e,t,r,n]),resetState:(0,O.useCallback)(()=>{o(!1)},[])}}let gZ=()=>{},gX=e=>e,g_=e=>{let{value:t,onChange:n=gZ,changeDebounceWait:r=500,transform:i=gX,onFocus:o,onBlur:l,onKeyPress:a,onEnterKeyPress:s}=e,u=(0,O.useMemo)(()=>(0,C.A)(n,r),[r,n]),{hasFocus:c,focusBindings:d}=gK({onFocus:o,onBlur:(0,O.useCallback)(e=>{u.cancel();let r=e.target.value;r!==t&&(null==n||n(r)),null==l||l(e)},[u,l,n,t]),shouldEncapsulate:!1}),[p,h]=(0,O.useState)(t);return(0,O.useEffect)(()=>{c||h(t)},[t]),{draftValue:p,handleChange:(0,O.useCallback)(e=>{let n=i(gQ(e));h(n),n!==t&&u(n)},[u,i,t]),handleKeyPress:(0,O.useCallback)(e=>{"Enter"===e.key&&(null==s||s(),e.preventDefault()),null==a||a(e)},[s,a]),focusBindings:d}},gQ=e=>{var t;return e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement?e.target.value:null!=(t=e.target.textContent)?t:""},gJ=(e,t,n)=>[t,e,n].join("-"),gq=e=>{let t=(0,O.useId)();return(0,O.useMemo)(()=>({id:(e,n)=>gJ(n,t,e),fill:n=>((e,t,n)=>n?"url(#".concat(gJ(e,t,n),")"):"currentColor")(n,t,e)}),[t,e])};function g$(){let{alwaysTrueForTouchDevices:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isMobile:t,isTablet:n}=h0(),[r,i]=(0,O.useState)(!1),o=hT();return{hasMouseOver:e&&o&&(t||n)||r,mouseOverTargetProps:(0,O.useMemo)(()=>({onPointerEnter:()=>{i(!0)},onPointerLeave:()=>{i(!1)}}),[])}}let g1=()=>window.location.search.includes("forceEmbed=true")||window!==window.parent,g0=()=>{let[e,t]=(0,O.useState)(!0);return(0,O.useEffect)(()=>{t(g1)},[]),e||!1},g2=["line","areaStacked"],g5=()=>{let e=gz(e=>e.computedConfig.type);return g2.includes(e)};function g3(e){let t=O.useRef(void 0),n=O.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return O.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}let g7=(e,t)=>{let n=(0,O.useCallback)(n=>{e&&!e.contains(n.target)&&t(n)},[e,t]);(0,O.useEffect)(()=>(document.addEventListener("click",n,{capture:!0}),()=>{document.removeEventListener("click",n,{capture:!0})}),[n])};function g9(e){let t=(0,O.useRef)(null);return(0,O.useEffect)(()=>{t.current=e},[e]),t.current}let g4={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,isDefault:!0},g6=function(){let{debounce:e,onResize:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,r]=(0,O.useReducer)((e,t)=>e.width===t.width&&e.height===t.height?e:t,g4),i=(0,O.useRef)(null),o=(0,O.useRef)(t);o.current=t;let l=(0,O.useRef)((0,C.A)(e=>{var t;null==(t=o.current)||t.call(o,e),r(e)},e||0)).current,a=(0,O.useCallback)(e=>{l(e)},[l]),s=(0,O.useRef)(new ResizeObserver(e=>{var t,n,r,i;let[o]=e;if(!o)return;let{contentBoxSize:l,contentRect:s}=o,u=Math.round(null!=(n=null==(t=null==l?void 0:l[0])?void 0:t.inlineSize)?n:s.width),c=Math.round(null!=(i=null==(r=null==l?void 0:l[0])?void 0:r.blockSize)?i:s.height);a(Object.assign(Object.assign({},s.toJSON()),{width:u,height:c,isDefault:!1}))})),u=(0,O.useCallback)(e=>{e&&i.current!==e&&(i.current&&s.current.unobserve(i.current),i.current=e,e&&s.current.observe(e))},[]);return Object.assign(Object.assign({},n),{setElement:u,element:i.current,toJSON:()=>n})},g8=/^\d+$/,fe=/^\s*true|1\s*$/i,ft=/^\s*false|0\s*$/i,fn=e=>String(e),fr=e=>{if("number"==typeof e&&Number.isNaN(e))return 0;let t=Number.parseFloat("string"==typeof e?e:e.toString());if(Number.isNaN(t))throw Error("Value `".concat(e,"` cannot be cast to number."));return t},fi=e=>{if("boolean"==typeof e)throw Error("Boolean value `".concat(e,"` cannot be cast to date."));let t=new Date(e);if("string"==typeof e&&e.match(g8)){let n=Number.parseFloat(e);Number.isNaN(n)||(t=new Date(n))}if("Invalid Date"===t.toString())throw Error("Value `".concat(e,"` cannot be cast to date."));return t},fo=e=>{if(e instanceof Date)throw Error("Date value `".concat(e.toISOString(),"` cannot be cast to boolean."));if("string"==typeof e){if(e.match(fe))return!0;if(e.match(ft))return!1;throw Error("String value '".concat(e,"' cannot be cast to boolean."))}return!!e},fl=e=>{let{value:t}=e;return null===t?up:fo(t)?"True":"False"},fa=e=>{let{value:t}=e;return null===t?up:fl({value:t})},fs=fa,fu=e=>Math.abs(e)>1e3?fu(e/1e3):Number.isInteger(e),fc=(e,t,n)=>"number"!=typeof e?{}:fu(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:((e,t)=>{if(!d1(t)||e.length<2)return!1;let[n,r]=e;return 1>Math.abs(fr(null!=r?r:0)-fr(null!=n?n:0))})(n,t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:1},fd=e=>e.map(e=>e.value).join(""),fp=e=>"compact"!==e.type?e:{type:"compact",value:e.value.toLowerCase()},fh=e=>{let{intl:t,value:n,tickValues:r=[]}=e;if(null===n)return up;let i=fc(n,gA.Decimal,r);return fd(t.formatNumberToParts(fr(n),Object.assign(Object.assign({},i),{notation:"compact"})).map(fp))},fg=e=>{let{intl:t,value:n,tickValues:r=[],currency:i}=e;if(!i)return fh({intl:t,value:n,tickValues:r});if(null===n)return up;let o=fc(n,gA.Currency,r);return fd(t.formatNumberToParts(fr(n),Object.assign(Object.assign({},o),{notation:"compact",style:"currency",currencyDisplay:"narrowSymbol",currency:i})).map(fp))},ff=e=>{let{value:t,decimalPlaces:n}=e;if("number"==typeof n)return{minimumFractionDigits:n,maximumFractionDigits:n};let r=Math.ceil(Math.log10(Math.abs(t))),i=r>=3?0:2===r?1:2;return{minimumFractionDigits:"auto"===n?0:i,maximumFractionDigits:i}},fm=e=>{let{intl:t,value:n,currency:r,numberFormat:i}=e;if(null===n)return up;let o=fr(n),l=ff({decimalPlaces:"number"==typeof(null==i?void 0:i.decimalPlaces)?i.decimalPlaces:2,value:o});if(!r)return t.formatNumber(o,l);let{base:a,suffix:s}=uv(o,null==i?void 0:i.abbreviation);return t.formatNumber(a,Object.assign(Object.assign({},l),{style:"currency",currencyDisplay:"narrowSymbol",currency:r}))+s},fy=e=>"literal"!==e.type||", "!==e.value?e:{type:"literal",value:" • "},fx=e=>{let{intl:t,value:n}=e;return null===n?up:fd(t.formatDateToParts(fi(n),{dateStyle:"medium",timeStyle:"medium",timeZone:"UTC"}).map(fy))},fb=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{dateStyle:"medium",timeZone:"UTC"})},fC=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{day:"numeric",month:"long",timeZone:"UTC"})},fv=e=>{let{intl:t,value:n,intlOptions:r,numberFormat:i}=e;if(null===n)return up;let{base:o,suffix:l}=uv(fr(n),null==i?void 0:i.abbreviation),a=ff({value:o,decimalPlaces:null==i?void 0:i.decimalPlaces});return t.formatNumber(o,Object.assign(Object.assign({},r),a))+l};!function(e){e.Standard="standard",e.Compact="compact"}(i||(i={}));let fj={round:!0,units:["y","mo","d","h","m","s"]},fA=B.humanizer({language:"en",conjunction:" and ",serialComma:!1}),fw=B.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),fk=e=>{let{value:t,notation:n=i.Standard}=e;if(null===t)return up;let r=fr(t);return n===i.Compact?fw(r,fj):fA(r,fj)},fS=e=>{let{value:t}=e;return null===t?up:fk({value:t,notation:i.Compact})},fP=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatNumber(fr(n),{maximumFractionDigits:0})},fL=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{month:"long",timeZone:"UTC"})},fM=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{month:"short",year:"numeric",timeZone:"UTC"})},fO=e=>{let{intl:t,value:n,intlOptions:r,numberFormat:i}=e;if(null===n)return up;let o=fr(n),l=void 0===(null==i?void 0:i.decimalPlaces)?{minimumFractionDigits:0,maximumFractionDigits:2}:ff({value:o,decimalPlaces:null==i?void 0:i.decimalPlaces});return t.formatNumber(o,Object.assign(Object.assign(Object.assign({},r),l),{style:"percent"}))},fT=e=>{let{value:t}=e;if(null===t)return up;let n=fi(t);return"Q".concat(Math.floor(n.getUTCMonth()/3)+1," ").concat(n.getUTCFullYear())},fD=e=>{let{value:t}=e;return null===t?up:fn(t)},fI=e=>{let{intl:t,value:n}=e;if(null===n)return up;let r=fi(n),i=(0,z.f)(r,6);return t.formatDateTimeRange(r,i,{day:"numeric",month:"long",timeZone:"UTC"}).replace(/\d{4}/g,"").replace(/\s{2,}/g," ").trim()},fE=e=>{let{intl:t,value:n}=e;if(null===n)return up;let r=fi(n),i=(0,z.f)(r,6);return t.formatDateTimeRange(r,i,{dateStyle:"medium",timeZone:"UTC"})},fH=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{year:"numeric",timeZone:"UTC"})},fV=e=>{let{intl:t,value:n,cadence:r={cadence:"daily",step:1}}=e;if(null===n)return up;switch(r.cadence){case"hourly":return t.formatDate(fi(n),{timeStyle:"short",timeZone:"UTC"});case"daily":case"weekly":return t.formatDate(fi(n),{day:"numeric",month:"short",timeZone:"UTC"});case"monthly":return t.formatDate(fi(n),{month:"short",year:"numeric",timeZone:"UTC"});case"quarterly":return fT({value:n});case"yearly":return t.formatDate(fi(n),{year:"numeric",timeZone:"UTC"})}},fF=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{day:"numeric",month:"short",timeZone:"UTC"})},fB=fS,fz=fh,fR=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{month:"short",timeZone:"UTC"})},fY=e=>{let{intl:t,value:n,tickValues:r=[]}=e;if(null===n)return up;let i=fc(n,gA.Percentage,r);return fd(t.formatNumberToParts(fr(n),Object.assign(Object.assign({},i),{notation:"compact",style:"percent"})).map(fp))},fG=fD,fW=e=>{let{intl:t,value:n}=e;return null===n?up:t.formatDate(fi(n),{day:"numeric",month:"long",year:"numeric",weekday:"long",timeZone:"UTC"})},fU=e=>{let{intl:t,value:n}=e;if(null===n)return up;let r=fi(n),i=0!==r.getUTCSeconds();return t.formatDate(r,{day:"2-digit",month:"short",year:"numeric",weekday:"short",hour:"2-digit",minute:"2-digit",second:i?"2-digit":void 0,timeZone:"UTC"})},fN=e=>{let{intl:t,differenceLabelType:n,startValue:r,endValue:i}=e;if(null===r||null===i||void 0===r||void 0===i)return"n/a";let o=fr(r),l=fr(i);switch(n){case"absolute-difference":return fv({intl:t,value:l-o,intlOptions:{signDisplay:"always"}});case"relative-difference":{let e=(l-o)/o;return l-o==0?"0%":e===1/0?"∞":e===-1/0?"-∞":fO({intl:t,value:e,intlOptions:{signDisplay:"always"}})}case"proportion":{if(l-o==0)return"=";let e=l/o;return e===1/0?"∞":e===-1/0?"-∞":"".concat(t.formatNumber(e,{maximumFractionDigits:1}),"x")}}},fK=()=>(0,R.E)({locale:"en-GB"}),fZ=e=>{let{intl:t,primaryValue:n,comparisonValue:r}=e;if(void 0===n||void 0===r)return null;if(null===n||null===r)return{label:"No data",appearance:"neutral"};let i=fr(n),o=fr(r);if(0===o)return null;let l=(i-o)/Math.abs(o);if(0===l)return{label:"No change",appearance:"neutral"};let a=i>o;return{label:"".concat(a?"+":"-").concat(fO({intl:t,value:Math.abs(l)})),appearance:a?"positive":"negative"}},fX="EN_GB",f_={type:"spring",stiffness:500,damping:60,mass:1},fQ={type:"tween",ease:"backOut",duration:.5},fJ={type:"tween",ease:"circOut",duration:.4},{toolbar:fq,below:f$,above:f1,modal:f0}=sJ,f2=f$+fq,f5=f$+f2,f3=f$+f5,f7=f$+f3,f9=f$+f7,f4=f$+f9,f6={dataLabels:f$+f4,stackTotals:f4,trendLines:f$+f9,targetLines:f9,pointAnnotations:f3,annotations:f7,annotationsMenu:f5,highlightEditor:f2,tooltips:f1+f0,focusGuard:999},f8=(0,O.createContext)(pn),me=()=>(0,O.useContext)(f8),mt=e=>{let{children:t,value:n}=e;return(0,g.jsx)(f8.Provider,n?{value:n,children:t}:{value:pn,children:t})},mn=gH(null),mr=e=>gV(mn,t=>{if(!t)throw Error("useChartLayoutValue requires ChartLayoutContext");return t[e]}),mi=h.I4.div(tF(),e=>{var t;let{$theme:n}=e;return null!=(t=n.colorScheme)?t:"auto"},e=>{let{$theme:t}=e;return uM(t)},uA("textPrimary")),mo=(0,O.createContext)(null),ml=()=>(0,O.useContext)(mo),ma=uE(mo,"ThemeProvider"),ms=e=>{let{children:t,theme:n}=e;return(0,g.jsx)(h.NP,{theme:n,children:(0,g.jsx)(mo.Provider,{value:n,children:(0,g.jsx)(mi,{$theme:n,"data-graphy-theme":n.id,children:t})})})},mu=e=>{let{children:t}=e,n=ma();return(0,g.jsx)(mi,{$theme:n,"data-graphy-theme":n.id,children:t})},mc=h.I4.div(tz(),e=>{let{$resetFontSize:t}=e;if(t)return(0,h.AH)(tB(),hY)},e=>{let{$zIndex:t}=e;return null!=t?t:"auto"},e=>{let{$zIndex:t}=e;return t?"relative":"static"},e=>{let{$zIndex:t}=e;return t?"block":"contents"}),md=e=>{var t;let{children:n,zIndex:r,id:i,container:o,resetFontSize:l=!0}=e,[,a]=(0,O.useState)(!1);(0,O.useLayoutEffect)(()=>{a(!0)},[]);let s=null!=(t=null!=o?o:document.getElementById("graphy_root"))?t:document.body;return(0,G.createPortal)((0,g.jsx)(mu,{children:(0,g.jsx)(mc,{id:i,$zIndex:r,$resetFontSize:l,children:n})}),s)},mp=h.I4.div(tR(),hY,uA("textSecondary")),mh=h.I4.div(tY(),f6.tooltips),mg=h.I4.div(tG()),mf=h.I4.div(tW(),uA("tooltipBackground"),uA("tooltipBorderColor")),mm=h.I4.div(tU(),sL,hq,uA("tooltipHeadingTextColor")),my=h.I4.div(tN()),mx=h.I4.div(tK(),sM,uA("tooltipLabelTextColor")),mb=h.I4.div(tZ(),e=>{let{$placement:t}=e;return mC(t)},uA("tooltipBorderColor")),mC=e=>{switch(e){case"top":return(0,h.AH)(tX());case"right":return(0,h.AH)(t_());case"bottom":return(0,h.AH)(tQ());case"left":return(0,h.AH)(tJ())}},mv=O.forwardRef(function(e,t){var{children:n}=e,r=s$(e,["children"]);let i=mr("textScale"),o=mr("font"),l=me().find(e=>o.body.fontId===e.id);return(0,g.jsx)(md,{zIndex:f6.tooltips,id:"tooltipAddon",children:(0,g.jsx)(mp,{style:{"--typography-scale":i,fontFamily:po(null==l?void 0:l.fontFamily),color:o.body.color},children:(0,g.jsx)(mh,Object.assign({ref:t},r,{children:n}))})})});h.I4.div(tq(),sk);let mj=h.I4.div(t$(),hK(.3),e=>{let{$size:t}=e;return"small"===t?sS:sk}),mA=e=>{let{text:t,size:n="regular"}=e;return(0,g.jsx)(mj,{$size:n,children:t})},mw=h.I4.div(t1(),hK(1.25),hK(2)),mk=h.I4.div(t0()),mS=h.I4.div(t2(),hq,sP,uA("tooltipLabelTextColor")),mP=h.I4.code(t5(),uA("tooltipValueTextColor")),mL=e=>{let{symbol:t,label:n,value:r}=e;return(0,g.jsxs)(mw,{children:[t&&(0,g.jsx)(mk,{children:t}),n&&(0,g.jsx)(mS,{children:n}),(0,g.jsx)(mP,{children:r})]})},mM=e=>{let{children:t,onHover:n,onHoverEnd:r,hasArrow:i=!1,arrowPlacement:o="bottom"}=e;return(0,g.jsx)(mg,{role:"tooltip",children:(0,g.jsxs)(mf,{onPointerEnter:()=>null==n?void 0:n(),onPointerLeave:()=>null==r?void 0:r(),children:[t,i&&(0,g.jsx)(mb,{$placement:o,children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"8",viewBox:"0 0 18 8",fill:"none",children:(0,g.jsx)("path",{d:"M14.5303 2.03033L15.8107 0.75H14H4H2.18934L3.46967 2.03033L8.11612 6.67678C8.60427 7.16493 9.39573 7.16493 9.88388 6.67678L14.5303 2.03033Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5"})})})]})})},mO=mm,mT=e=>{let{children:t}=e;return(0,g.jsx)(my,{children:(0,g.jsx)(mx,{children:t})})},mD=e=>{let{pointer:t,isEnabled:n=!0,offset:r=0}=e,i=n&&t,{setElement:o,element:l,width:a,height:s}=g6(),{setElement:u,width:c,height:d}=g6();return(0,O.useEffect)(()=>{if(l){let e=pg(l);e&&u(e)}},[u,l]),{setTooltipContainer:o,isVisible:i,position:(0,O.useMemo)(()=>{if(!t)return{};let{pointerX:e,pointerY:n,scaleFactor:i}=t,o=r*i,l=a*i,u=s*i,p=e+o;p+l>c-8&&(p=e-l-o);let h=Math.max(n-u/2,8);return h+=Math.min(0,d-h-u-8),{transformOrigin:"top left",transform:"translate(".concat(p,"px, ").concat(h,"px) scale(").concat(i,") ")}},[t,r,a,c,s,d])}},mI=h.I4.div(t3()),mE=h.I4.div(t7()),mH=h.I4.div(t9(),hK(.5)),mV=h.I4.div(t4()),mF=h.I4.div(t6(),hK(1)),mB=h.I4.span(t8(),sO,uA("tooltipValueTextColor")),mz=h.I4.div(ne()),mR=e=>{let{heading:t,accessory:n,trend:r,value:i,label:o,caption:l}=e;return(0,g.jsxs)(mI,{children:[(0,g.jsxs)(mE,{children:[(0,g.jsxs)(mH,{children:[(0,g.jsx)(mV,{children:null!=n?n:(0,g.jsx)("div",{})}),(0,g.jsx)(mO,{children:t})]}),(0,g.jsx)(mF,{children:(0,g.jsx)(mB,{children:i})}),l?(0,g.jsx)(mA,{text:l}):(0,g.jsx)(mz,{}),r]}),o&&(0,g.jsx)(mT,{children:o})]})},mY=()=>{let[e,t]=(0,O.useState)(null),[n,r]=(0,O.useState)(null);return{pointerX:e,pointerY:n,handleMouseMove:(0,O.useCallback)(e=>{t(e.clientX),r(e.clientY)},[]),handleMouseLeave:(0,O.useCallback)(()=>{t(null),r(null)},[])}},mG=e=>(0,h.AH)(nn(),sK[e],sZ[e],sd[sX[e]],s_[e]&&(0,h.AH)(nt(),s_[e])),mW=mG("titleLarge"),mU=mG("titleMedium"),mN=mG("titleSmall"),mK=mG("titleSmaller"),mZ=mG("titleSmallest"),mX=mG("body"),m_=mG("bodyBold"),mQ=mG("bodyLink"),mJ=mG("bodyLarge"),mq=mG("caption"),m$=mG("captionLink"),m1=mG("label"),m0=mG("labelSmall"),m2=mG("captionBody");var m5=Object.freeze({__proto__:null,body:mX,bodyBold:m_,bodyLarge:mJ,bodyLink:mQ,caption:mq,captionBody:m2,captionLink:m$,label:m1,labelSmall:m0,titleLarge:mW,titleMedium:mU,titleSmall:mN,titleSmaller:mK,titleSmallest:mZ});let m3=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05;return(0,h.AH)(nr(),uw(t||uA("textPrimary"),n),e,e,e/2,e/2)},m7=["#B399FE","#FC7E91","#33B6E0","#FFC849","#25CDA5","#FA9B65","#D93C95","#845FD8","#3F8EEB","#58C8D8","#F35074","#6EA0DA"],m9=(e,t,n,r)=>{var i,o;let l,{vizType:a,theme:s,palette:u,colorScheme:c,seriesConfig:d,brandKit:p,customPalettes:h}=e;if("custom"===s)return gg(d,a);if("brandKit"===s)return gg(p,a);switch(s){case"graphy":case"pastel":l="graphy"===s?yn(a):yr(a);break;case"mono":l=ye(u,t,c),ye(u,10,c);break;case"neon":l=yt(u,t,a),yt(u,10,a);break;case"customPalette":{let e=m8({paletteId:u,customPalettes:h,vizType:a,seriesCount:null!=t?t:10});e.full,l=e.base}}if(r&&n&&!(Object.keys(null!=d?d:{}).filter(e=>{var t;return null==(t=null==d?void 0:d[e])?void 0:t.color}).length>1)){let e=null!=(o=null==(i=null==d?void 0:d.series1)?void 0:i.color)?o:l[0];return Array(t).fill(e)}return((e,t,n,r,i)=>{let o="waterfall"===n?gh:gp,l="waterfall"===n?o.length:Math.max(r,1);return o.slice(0,l).map((t,n)=>{var r;let o=null==(r=null==i?void 0:i[t])?void 0:r.color;return null!=o?o:e[n%e.length]})})(l,0,a,t,d)},m4=(e,t)=>{switch(e.theme){case"graphy":return yn(e.vizType);case"pastel":return yr(e.vizType);case"mono":return ye(e.palette,null!=t?t:7,e.colorScheme);case"neon":return yt(e.palette,null!=t?t:10,e.vizType);case"customPalette":return m8({paletteId:e.palette,customPalettes:e.customPalettes,vizType:e.vizType,seriesCount:null!=t?t:10}).full;default:return yn(e)}},m6={dark:{1:[500],2:[600,400],3:[600,400,200],4:[600,500,300,100],5:[700,600,400,200,50],6:[600,500,400,300,200,100],7:[600,500,400,300,200,100,50],default:[700,600,500,400,300,200,100,50]},light:{1:[600],2:[700,500],3:[800,600,400],4:[800,600,400,300],5:[800,700,600,500,400],6:[800,700,600,500,400,300],7:[900,800,700,600,500,400,300],default:[900,800,700,600,500,400,300,200]}},m8=e=>{let{paletteId:t,customPalettes:n,vizType:r,seriesCount:i}=e,o=null==n?void 0:n.find(e=>e.id===t);if(!o){let e=yn(r);return{base:e,full:e}}let l=o.colors.map(e=>e.hex);if(0===l.length){let e=yn(r);return{base:e,full:e}}return{base:l.slice(0,i),full:l}},ye=(e,t,n)=>{var r;let i=null!=(r=m6[n][t])?r:m6[n].default,o=i.map(t=>gr["".concat(e).concat(t)]);return o.length?o:[gr["".concat(e).concat(i[0])]]},yt=(e,t,n)=>{if("waterfall"===n)return gc;let r=((e,t)=>{let n=e.length,r=(t%n+n)%n;return Array.from({length:n},(t,i)=>e[(i+r)%n])})(ga,ga.indexOf(gi[e])).slice(0,t);return r.length?r:[ga[0]]},yn=e=>"waterfall"===e?gs:go,yr=e=>"waterfall"===e?gu:gl,yi=e=>{let{min:t,max:n}=e;return t&&n?"@media (".concat(sq[t],"px <= width < ").concat(sq[n],"px)"):t?"@media (width >= ".concat(sq[t],"px)"):n?"@media (width < ".concat(sq[n],"px)"):""},yo={tablet:yi({min:"tablet"}),desktop:yi({min:"desktop"}),largeScreen:yi({min:"largeScreen"}),mobileOnly:yi({max:"tablet"}),tabletOnly:yi({min:"tablet",max:"desktop"}),desktopOnly:yi({min:"desktop",max:"largeScreen"}),largeScreenOnly:yi({min:"largeScreen"}),custom:yi},yl=D.Ik({id:D.Yj(),label:D.Yj().optional(),value:D.Yj()}),ya=D.Ik({white:D.Yj(),black:D.Yj(),transparent:D.Yj(),grey100:D.Yj(),grey95:D.Yj(),grey90:D.Yj(),grey85:D.Yj(),grey80:D.Yj(),grey75:D.Yj(),grey70:D.Yj(),grey60:D.Yj(),grey50:D.Yj(),grey0:D.Yj(),green60:D.Yj(),green50:D.Yj(),red60:D.Yj(),red50:D.Yj(),amber70:D.Yj(),amber50:D.Yj(),amber40:D.Yj(),amber30:D.Yj(),blue80:D.Yj(),blue60:D.Yj(),purple50:D.Yj(),purple30:D.Yj(),greyGradient80:D.Yj(),brand:D.Yj(),success:D.Yj(),warning:D.Yj(),alert:D.Yj(),textPrimary:D.Yj(),textSecondary:D.Yj(),textDisabled:D.Yj(),border100:D.Yj(),border10:D.Yj(),sunkenBackground:D.Yj(),defaultBackground:D.Yj(),raisedBackground:D.Yj(),overlayBackground:D.Yj(),overlayBorderGradient:D.Yj(),graphBackground:D.Yj(),gridLineColor:D.Yj(),hoverGuideLineColor:D.Yj(),originLineColor:D.Yj(),targetLineColor:D.Yj(),targetLineMarkerColor:D.Yj(),legendBackground:D.Yj(),legendBorderColor:D.Yj(),legendTextColor:D.Yj(),dimmedSeriesLabelTextColor:D.Yj(),dimmedSeriesLabelLineColor:D.Yj(),trendNegativeColor:D.Yj(),trendPositiveColor:D.Yj(),tooltipBackground:D.Yj(),tooltipBorderColor:D.Yj(),tooltipHeadingTextColor:D.Yj(),tooltipLabelTextColor:D.Yj(),tooltipValueTextColor:D.Yj(),graphTypeIconAccentColor:D.Yj(),heatmapEmptyTileBackground:D.Yj(),stackedBarHoverBorderColor:D.Yj(),defaultArrowAnnotationColor:D.Yj(),annotationFrameBorderColor:D.Yj(),annotationMenuTriggerIconColor:D.Yj()}),ys=D.k5(["light","dark"]),yu=D.Ik({arrowStroke:D.Yj().optional(),shapeFill:D.Yj().optional()}),yc=D.Ik({id:D.Yj(),colorScheme:ys,values:ya,canvasColors:D.YO(yl),defaultAnnotationColorIds:yu}),yd=ya.partial(),yp=e=>Array.isArray(e)?!!e.length:!!e;!function(e){e.Null="null",e.Number="number",e.Boolean="boolean",e.Datetime="datetime",e.String="string"}(o||(o={}));let yh="#%_ENCODED_%#",yg=e=>"string"==typeof e&&e.startsWith(yh)?e:null===e?yf(o.Null):"number"==typeof e?yf(o.Number,e):"boolean"==typeof e?yf(o.Boolean,e):e instanceof Date?yf(o.Datetime,e.toISOString()):yf(o.String,e),yf=(e,t)=>"".concat(yh).concat(JSON.stringify({type:e,value:t})),ym=e=>{if("string"!=typeof e||!e.startsWith(yh))return e;try{let{type:t,value:n}=JSON.parse(e.slice(13));if(t===o.Null||void 0===n)return null;if(t===o.Datetime)return new Date(n);if([o.Number,o.Boolean,o.String].includes(t))return n}catch(e){}return e},yy=e=>{let{data:t,group:n}=e;return yp(n)?[...new Set([...t].map(e=>e[n[0].variableKey]))].map(yg):[]},yx=(0,O.createContext)(null),yb=()=>{let e=(0,O.useContext)(yx);if(null===e)throw Error("InteractivityProvider must be mounted above useInteractivity");return e},yC=e=>"line"===e.type,yv=e=>"bar"===e.type,yj=e=>"tile"===e.type,yA=e=>yC(e)||yv(e)||yj(e)||yk(e),yw=e=>"pie"===e.type||"donut"===e.type,yk=e=>"point"===e.type,yS=e=>yv(e)&&!0===e.isMekko,yP=e=>"xy"===e.type,yL=(0,O.createContext)(null),yM=uE(yL,"HighlightProvider"),yO=e=>{let{vizType:t,aestheticMappings:n,data:r,chartHasTrend:i,children:o,highlightStyle:l}=e,{highlight:a,id:s}=n,u="highlightGroup"in n?n.highlightGroup:void 0,c="group"in n?n.group:void 0,d="x"in n?n.x:void 0,{overlayState:{closestGeomDataPoint:p}}=yb(),h=!!p,f=(0,O.useMemo)(()=>{let e=!!u&&r.getValues(u).some(Boolean),t=!!a&&r.getValues(a).some(Boolean);return e||t},[r,a,u]),m=(0,O.useMemo)(()=>yT({data:r,highlight:a}),[r,a]),y=(0,O.useMemo)(()=>yD({data:r,group:c,highlightGroup:u}),[r,c,u]),x=(0,O.useMemo)(()=>yE({data:r,x:d,highlight:a}),[r,d,a]),b=(0,O.useCallback)(e=>!0===m(e),[m]),C=(0,O.useCallback)(e=>!0===y(e),[y]),v=(0,O.useCallback)(e=>!(f||!i)||!1===y(e),[f,i,y]),j=(0,O.useCallback)(e=>{let t=v(e),n=ym(yI({observation:e,group:c})),r=p&&yC(p)&&p.groupValues.includes(n);return h&&!r||t&&!r},[p,c,h,v]),A=(0,O.useCallback)(e=>{let t=!f&&i,n=(null!==m(e)||null!==y(e))&&!0!==m(e)&&!0!==y(e),r=p&&yv(p)&&e[s]===p.id;return h&&!r||(t||n)&&!r},[f,i,m,y,p,s,h]),w=(0,O.useCallback)(e=>{if(!df.includes(t))return v(e)&&!b(e);let n=p&&yk(p)&&e[s]===p.id;if(h&&!n)return!0;let r=!f&&i,o=(null!==m(e)||null!==y(e))&&!0!==m(e)&&!0!==y(e);return(r||o)&&!n},[f,i,m,y,p,s,h,b,v,t]),k=(0,O.useCallback)(e=>!0===m(e)||!0===y(e),[m,y]),S=(0,O.useCallback)(e=>!!["barStacked","columnStacked"].includes(t)&&!0===x(e),[t,x]),P=(0,O.useMemo)(()=>["line","areaStacked"].includes(t)&&[...r].some(C),[r,C,t]),L=(0,O.useMemo)(()=>["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"].includes(t)&&[...r].some(e=>!0===y(e)),[r,y,t]),M=h?"fade-color":null!=l?l:"grey",T=h?"weak":"normal",D=(0,O.useMemo)(()=>({isHighlighted:m,isGroupHighlighted:y,isXValueHighlighted:x,isPointHighlighted:b,isSeriesHighlighted:C,isSeriesDimmed:v,isLineDimmed:j,isBarDimmed:A,isPointDimmed:w,isBarHighlighted:k,isStackHighlighted:S,isAnyLineHighlighted:P,isAnyStackHighlighted:L,chartHasHighlight:f,highlightStyle:M,dimAmount:T}),[m,y,x,b,C,v,j,A,w,k,S,P,L,f,M,T]);return(0,g.jsx)(yL.Provider,{value:D,children:o})},yT=e=>{let{data:t,highlight:n}=e,r=void 0!==n&&t.getValues(n).some(e=>null!==e&&fo(e));return e=>{if(!n||!r)return null;let t=e[n];return null===t?null:fo(t)}},yD=e=>{let{data:t,group:n,highlightGroup:r}=e,i=yy({data:t,group:n}),o=new Map;for(let e of i)o.set(e,null);if(r)for(let e of t){let t=yI({observation:e,group:n});if(!o.has(t))continue;let i=e[r];if(null===i)continue;let l=fo(i);null===o.get(t)?o.set(t,l):l&&o.set(t,!0)}if([...o.values()].every(e=>!1===e))for(let e of i)o.set(e,null);return e=>{var t;if(!r)return null;let i=yI({observation:e,group:n});return null!=(t=o.get(i))?t:null}},yI=e=>{let{observation:t,group:n}=e;return(null==n?void 0:n[0])?yg(t[n[0].variableKey]):""},yE=e=>{let{data:t,x:n,highlight:r}=e;if(!r||!n)return()=>null;let i=[...new Set(t.getValues(n))].map(yg),o=new Map;for(let e of i)o.set(e,!1),[...t].filter(t=>yg(t[n])===e).every(e=>{let t=e[r];return null!==t&&fo(t)})&&o.set(e,!0);if([...o.values()].every(e=>!1===e))for(let e of i)o.set(e,null);return e=>{var t;if(!r)return null;let i=yg(e[n]);return null!=(t=o.get(i))?t:null}},yH="undefined"!=typeof document?document.createElement("div"):null;yH&&(yH.style.cssText="\n position: absolute;\n left: -999999px;\n top: -999999px;\n opacity: 0;\n pointer-events: none;\n ",document.body.appendChild(yH));let yV=()=>{let e=mr("textScale"),t=mr("font"),n=(0,O.useContext)(yL);return(0,O.useCallback)(r=>{var i;if(!yH)return{x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0,toJSON:()=>({})};yH.innerHTML=X.renderToStaticMarkup((0,g.jsx)(ms,{theme:h3,children:(0,g.jsx)(yL.Provider,{value:n,children:(0,g.jsx)(mp,{style:{"--typography-scale":e,"--typography-chart-font-family":po(t.body.fontId)},children:(0,g.jsx)("span",{"data-id":"measure-react-content-span",children:r})})})}));let o=yH.querySelector('[data-id="measure-react-content-span"]');return null!=(i=null==o?void 0:o.getBoundingClientRect())?i:yH.getBoundingClientRect()},[t,n,e])},yF=e=>{let{vizType:t,observations:n,x:r,y:i,group:o,skip:l=()=>!1}=e,[a,s]=o,{order:u,variableKey:c}=a,{order:d,variableKey:p}=s||{},h=((null==u?void 0:u.length)?yz(n,u,c):yB(n,c)).filter(e=>!l(e)),g=[];p&&(g=(null==d?void 0:d.length)?yz(n,d,p):yB(n,p));let{partitions:f}=(e=>{let{observations:t,x:n,group:r}=e,i=(0,ei.Ay)(t,e=>(e=>{var t;let{observation:n,x:r,group:i}=e,o=null==(t=i[1])?void 0:t.variableKey;return(o?[n[o],n[r]]:[n[r]]).map(yg).join(",")})({observation:e,x:n,group:r})),o=[...i.values()],l=[...i.keys()];return{partitionsMap:i,partitions:o,partitionKeys:l}})({observations:n,x:r,group:o}),m=f.map(e=>e.reduce((e,t)=>Object.assign(Object.assign({},e),{[yg(t[c])]:t}),{}));return{stackedData:yR((0,_.A)().keys(h).value((e,t)=>{var n,r;return fr(null!=(r=null==(n=e[t])?void 0:n[i])?r:0)}).offset(["barStackedFill","columnStackedFill","mekko"].includes(t)?Q.A:J.A)(m)),barGroupKeys:g}},yB=(e,t)=>[...new Set(e.map(e=>e[t]))].map(yg),yz=(e,t,n)=>{let r=[],i=[];for(let o of t)for(let t of e)t[n]===o?r.push(t):i.push(t);return yB([...r,...i],n)},yR=e=>e.map(e=>e.map(t=>t.data[e.key]?{seriesKey:e.key,yLowerValue:t[0],yUpperValue:t[1],observation:t.data[e.key]}:null)),yY=e=>{let{stackedData:t}=e;return(0,v.A)(...t)},yG=e=>{let{observation:t,group:n}=e;return n?n.map(e=>{let{variableKey:n}=e;return t[n]}):[]},yW=e=>{let{observations:t,group:n=[]}=e,{partitionsMap:r,partitionPathLabels:i}=yN({group:n,observations:t}),o=[...r.values()],l=[...r.keys()];return{partitionsMap:r,partitions:o,partitionKeys:l,partitionPathLabels:i}},yU=e=>{let{observation:t,group:n}=e;return yG({observation:t,group:n}).map(yg).join(",")},yN=e=>{var t;let{group:n,observations:r}=e,i=yK({group:n,observations:r,keyPath:[]});(null==(t=n[0])?void 0:t.order)&&(i=yZ(i,n[0].order,0));let o=new Map,l=new Set;for(let[e,t]of i)l.add(e),o.set(e.map(yg).join(","),t);return{partitionsMap:o,partitionPathLabels:[...l]}},yK=e=>{var t;let{group:n,observations:r,keyPath:i}=e,[o,...l]=n;if(!o)return[[i,r]];let a=[...(0,ei.Ay)(r,e=>e[o.variableKey])].map(e=>{let[t,n]=e;return[[...i,t],n]});return l.length?a.flatMap(e=>{let[t,n]=e;return yK({group:l,observations:n,keyPath:t})}):(null==(t=n[0])?void 0:t.order)?yZ(a,n[0].order,1):a},yZ=(e,t,n)=>{if(t.length){let r=[],i=[];for(let o of t)for(let t of e)t[0][n]===o?r.push(t):i.push(t);return[...r,...i]}return e},yX=e=>{let{observation:t,cluster:n}=e;return n?Array.isArray(n)?n.map(e=>t[e]):[t[n]]:[]},y_=e=>Array.isArray(e)?!!e.length:!!e,yQ=(e,t)=>{let n=(0,ec.d)(e);return O.useEffect(()=>{let r=(0,eu.xv)(n.get(),e);(0,ed.i)(0,1,Object.assign(Object.assign({},t),{onUpdate:e=>{let t=r(e);return n.set(t)}}))},[t,e,n]),n},yJ=(e,t)=>{if(null==t)return!1;if(dq(e))try{return fi(t),!0}catch(e){return!1}if(d1(e))try{return fr(t),!0}catch(e){return!1}return!0},yq=e=>{try{return fr(e),!0}catch(e){return!1}},y$=(e,t)=>{let n=e.length>=2?e.slice(0,-1):e,r=e.length>=2?e[e.length-1]:null;return{primaryGeomKeys:n,secondaryGeomKey:r,primaryDomainKeys:"single"===t?e:n,secondaryDomainKey:"single"===t?null:r}},y1=["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"],y0=e=>{var t,n;let{vizType:r,data:i,x:o,y:l,group:a,yGoalValue:s,secondaryGeomKey:u,comboPlotAxisCount:c,customEndAt:d}=e,{stackedData:p}=yF({vizType:r,observations:[...i],x:o,y:l,group:a,skip:e=>"double"===c&&e===u}),h=p.flat(),g=null!=(t=(0,el.A)(h,e=>{var t;return null!=(t=null==e?void 0:e.yUpperValue)?t:0}))?t:0,f=d?Math.max(d,g):g,m=[null!=(n=(0,ea.A)(h,e=>{var t;return null!=(t=null==e?void 0:e.yLowerValue)?t:0}))?n:0,f];return yq(s)?[Math.min(fr(s),m[0]),Math.max(fr(s),m[1])]:m},y2=e=>{let t,{strategy:n,values:r,absoluteValue:i}=e;try{if(null===i)return null;t=fr(i)}catch(e){return null}switch(n){case"divide-by-total":{let e=y5(r);return 0===e?null:t/e}case"divide-by-max-value":{let e=y3(r);return null===e||0===e?null:t/e}}},y5=e=>e.reduce((e,t)=>{if(null===t)return e;try{return e+fr(t)}catch(t){return e}},0),y3=e=>{let t=[];for(let n of e)if(null!==n)try{t.push(fr(n))}catch(e){}return 0===t.length?null:Math.max(...t)},y7=e=>{let t=!1;try{t=null===e||fr(e)>=0}catch(e){}return t},y9=(e,t,n,r)=>{let i=r.reduce((r,i)=>{let o=i.find(e=>null==e?void 0:e.observation),l=y4(null==o?void 0:o.observation,e,n);if(!l)return r;let a=i.map(e=>{var n;return null!=(n=null==e?void 0:e.observation[t])?n:null});return Object.assign(Object.assign({},r),{[l]:a})},{});return t=>{var r;let o=y4(t,e,n);return o&&null!=(r=i[o])?r:[]}},y4=(e,t,n)=>{var r,i;if(!e)return null;let o=yg(null!=(r=e[t])?r:"");return n[1]&&(o="".concat(o,"-").concat(yg(null!=(i=e[n[1].variableKey])?i:""))),o},y6="__%graphy%__upper",y8="__%graphy%__lower",xe=(e,t,n)=>Object.assign(Object.assign({},e),{[y6]:t,[y8]:n}),xt=e=>e>=200?8:4,xn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.3;return uP(e,uL(t,1),n)},xr=e=>{let{theme:t,fill:n,opacity:r,isDimmed:i,highlightStyle:o,backgroundColor:l,dimAmount:a="normal"}=e;if(!n)return"";let s=((e,t,n)=>{if(void 0===n||1===n)return t;try{return uP(e.values.grey100,t,n)}catch(e){return t}})(t,n,r);if(!i)return s;try{let e=l&&"transparent"!==l?l:t.values.grey100,r="normal"===a?.3:.7;return"grey"===o?xn(e,n,r):uP(e,s,r)}catch(e){return s}},xi=e=>{var t;let{partitionKeys:n,partitionsMap:r,isSeriesHighlighted:i}=e,o=[],l=[];for(let e of n){let[n]=null!=(t=r.get(e))?t:[];n&&(i(n)?o.push(e):l.push(e))}return[...o,...l].reverse()},xo=e=>{let{measureReactContent:t,text:n,maxWidth:r,wrapper:i=e=>{let{children:t}=e;return t}}=e,o=e=>"".concat(e.trim(),"…"),l=e=>t((0,g.jsx)(i,{children:e})),a=n,{width:s}=l(a);for(;s>r&&a.length;)s=l(o(a=a.slice(0,-1))).width;return a.length<=1&&l(n.slice(0,a.length+1)).width<=r?n.slice(0,a.length+1):a!==n?o(a):n},xl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"solid";switch(t){case"solid":return{strokeWidth:e,strokeLinejoin:"round",strokeLinecap:"round"};case"dashed":return{strokeWidth:e,strokeDasharray:"".concat(4*e," ").concat(3*e),strokeLinejoin:"round",strokeLinecap:"butt"};case"dotted":return{strokeWidth:e,strokeDasharray:"".concat(+e," ").concat(+e),strokeLinejoin:"round",strokeLinecap:"butt"}}},xa=e=>{let{theme:t,color:n,isDimmed:r,highlightStyle:i,backgroundColor:o,dimAmount:l="normal"}=e;if(!r)return n;let a="normal"===l?.3:.7;try{let e=o&&"transparent"!==o?o:t.values.grey100;return"grey"===i?xn(e,n,a):uP(e,n,a)}catch(e){return n}},xs="__DEFAULT_COLOR__";!function(e){e.X="x",e.Y="y"}(l||(l={})),function(e){e.Mekko="mekko",e.Timeseries="timeseries",e.Dynamic="dynamic",e.Continuous="continuous",e.Fixed="fixed"}(a||(a={}));let xu=e=>{if(!("ticks"in e))return!1;let t=e.domain();if("number"!=typeof t[0])return!1;let[n,r]=[Math.min(...t),Math.max(...t)];return n<0&&r>0},xc=[...dh,...dg,"waterfall","mekko"],xd=e=>{let{xType:t,isTimeseriesBarAxis:n,vizType:r,comboPlotType:i}=e;return"mekko"===r?a.Mekko:xp(r,t,n,i)?a.Timeseries:["line","areaStacked"].includes(r)?a.Dynamic:d1(t)?a.Continuous:a.Fixed},xp=(e,t,n,r)=>!!dq(t)&&(!!n||!xc.includes(e)&&("combo"!==e||"lines"===r)),xh=[...dh,...dg,"funnel","combo","heatmap","waterfall"],xg=(e,t,n,r)=>!(!dQ(t)&&!dJ(t))||r===l.X&&xh.includes(e)&&"lines"!==n,xf=["barStackedFill","columnStackedFill","mekko"],xm=e=>{var t,n;let{data:r,lowerKey:i,upperKey:o,dimensionSize:l}=e,a=i?r.getValues(i):[],s=o?r.getValues(o):[],u=null!=(t=(0,ea.A)(a.map(e=>{var t;return fr(null!=(t=ym(e))?t:0)})))?t:0,c=null!=(n=(0,el.A)(s.map(e=>{var t;return fr(null!=(t=ym(e))?t:0)})))?n:0;return(0,U.A)().range([0,l]).domain([u,c])},xy=e=>{let{vizType:t,orientation:n,comboPlotType:r,values:i=[],dataType:o,customDomain:l,range:a,innerPadding:s,outerPadding:u,useLogScale:c,customStartFrom:d,customEndAt:p}=e;if(xg(t,o,r,n))return xx({values:i,customDomain:l,range:a,innerPadding:s,outerPadding:u});if(d1(o))return xb({vizType:t,orientation:n,values:i,customDomain:l,range:a,useLogScale:c,comboPlotType:r,customStartFrom:d,customEndAt:p,dataType:o});if(dq(o))return xv({values:i,range:a});throw Error("Cannot create scale of type ".concat(o))},xx=e=>{let{values:t=[],customDomain:n,range:r,innerPadding:i=0,outerPadding:o=0}=e,l=(0,es.A)(t,yg);return(0,N.A)().domain(n||l).range(r).paddingOuter(o).paddingInner(i)},xb=e=>{let{vizType:t,orientation:n,values:r,customDomain:i,customStartFrom:o,customEndAt:l,range:a,useLogScale:s,comboPlotType:u,dataType:c}=e,d=xw(i)?i:xS(r);if(s&&xk(d))return(0,K.A)().domain(d).range(a);let p=(0,U.A)().domain(d).range(a);xC(t,c,u,n)&&p.nice();let[h,g]=p.domain();return(o||l)&&h&&g&&p.domain([null!=o?o:h,null!=l?l:g]),p},xC=(e,t,n,r)=>{switch(r){case l.Y:return!xf.includes(e);case l.X:return xd({xType:t,isTimeseriesBarAxis:!1,vizType:e,comboPlotType:n})===a.Continuous;default:return!1}},xv=e=>{let{values:t,range:n}=e;return(0,Z.A)().domain(xP(t)).range(n)},xj=e=>{let{vizType:t,comboPlotType:n,orientation:r,scale:i,dataType:o,getValue:l}=e;return xg(t,o,n,r)?e=>{var t;return null!=(t=i(yg(l(e))))?t:0}:d1(o)?e=>{let t=l(e);return i(null===t?0:fr(t))}:dq(o)?e=>{let t=l(e);return i(null===t?0:fi(t))}:()=>0},xA=e=>{let{scale:t,dataType:n}=e;return"ticks"in t?dq(n)?e=>{if(null===e)return null;try{return t(fi(e))}catch(e){return null}}:e=>{if(null===e)return null;try{return t(fr(e))}catch(e){return null}}:e=>{if(null===e)return null;let n=t(yg(e));return void 0===n?null:n+t.bandwidth()/2}},xw=e=>!!e&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1],xk=e=>e[0]<0&&e[1]<0||e[0]>0&&e[1]>0,xS=e=>{let t=(0,eo.A)(e.filter(c5),fr);return void 0===t[0]||void 0===t[1]?[0,0]:t},xP=e=>{let t=(0,eo.A)(e.filter(c5),fi);return void 0===t[0]||void 0===t[1]?[]:t},xL="__%graphy%__y_start",xM="__%graphy%__y_end",xO="__%graphy%__waterfall_type",xT="start",xD="positive",xI="negative",xE="total",xH=[xT,xD,xI,xE],xV=(e,t,n)=>"heatmap"===e||n?[0,t]:[t,0],xF=e=>{let{barGroupKeys:t,xBandwidth:n}=e,r=(0,N.A)().domain(t).range([0,n]).paddingInner(.1*(t.length>1)).paddingOuter(0),i=r.bandwidth(),o=(e=>{let{barGroupXScale:t}=e;return e=>{var n;return null===e?0:null!=(n=t(e))?n:0}})({barGroupXScale:r});return{barGroupXScale:r,getBarGroupXPosition:o,barGroupXBandwidth:i}},xB="__DEFAULT_FILL_TYPE__",xz="__DEFAULT_LINE_TYPE__",xR=O.createContext(null),xY=()=>{let e=(0,O.useContext)(xR);if(null===e)throw Error("ColorScalesProvider must be present in the React tree");return e},xG=e=>{let{vizType:t,children:n,data:r,vizPalette:i,fillTypeRange:o,color:l,alpha:a,fillType:s,lineType:u,lineTypeRange:c}=e,d="waterfall"===t,p=(0,O.useMemo)(()=>(e=>{let{values:t,color:n,vizPalette:r=m7}=e,i=(0,W.A)().domain(n&&0!==t.length?[...new Set(t)].map(yg):[xs]).range(r),o=(e=>{let{colorScale:t,color:n}=e;return e=>t(n?yg(e[n]):xs)})({colorScale:i,color:n});return{colorScale:i,getColor:o}})({values:d?xH:l?r.getValues(l):[],color:d?xO:l,vizPalette:i}),[l,r,d,i]),h=(0,O.useMemo)(()=>(e=>{let{data:t,alpha:n}=e,r=n?t.getValues(n):[],i=(0,U.A)().domain((()=>{let e=(0,eo.A)(r.filter(c5),fr);return void 0===e[0]&&void 0===e[1]?[0,0]:e})()).range([n?.05:1,1]),o=(e=>{let{alphaScale:t,alpha:n}=e;return e=>{if(!n)return 1;let r=e[n];return t(null===r?0:fr(r))}})({alphaScale:i,alpha:n});return{alphaScale:i,getAlpha:o,isAlphaDefined:!!n,alphaValues:r}})({data:r,alpha:a}),[a,r]),f=(0,O.useMemo)(()=>(e=>{let{values:t,fillType:n,range:r=["solid"]}=e,i=(0,W.A)().domain(n&&0!==t.length?[...new Set(t)].map(yg):[xB]).range(r),o=(e=>{let{fillTypeScale:t,fillType:n}=e;return e=>t(n?yg(e[n]):xB)})({fillTypeScale:i,fillType:n});return{fillTypeScale:i,getFillType:o,isFillTypeDefined:void 0!==n}})({values:d?xH:s?r.getValues(s):[],fillType:d?xO:s,range:o}),[r,s,o,d]),m=(0,O.useMemo)(()=>(e=>{let{data:t,lineType:n,range:r=["solid"]}=e,i=(0,W.A)().domain(!n?[xz]:[...new Set(t.getValues(n))].map(yg)).range(r),o=(e=>{let{lineTypeScale:t,lineType:n}=e;return e=>t(n?yg(e[n]):xz)})({lineTypeScale:i,lineType:n});return{lineTypeScale:i,getLineType:o,isLineTypeDefined:void 0!==n}})({data:r,lineType:u,range:c}),[r,u,c]),y=(0,O.useMemo)(()=>Object.assign(Object.assign(Object.assign(Object.assign({},p),h),f),m),[p,h,f,m]);return(0,g.jsx)(xR.Provider,{value:y,children:n})},xW="graphy__chart-plot",xU=(0,h.AH)(ni(),"600px","400px"),xN=h.I4.div(no()),xK=h.I4.div(nl(),xU),xZ=h.I4.div(na()),xX=h.I4.div(ns(),xU),x_=h.I4.div(nu()),xQ=h.I4.div(nc(),xU),xJ=e=>{let{children:t,titleContent:n,chartSummary:r,footerContent:i}=e;return(0,g.jsxs)(xN,{children:[(0,g.jsxs)(xK,{children:[n?(0,g.jsx)(xZ,{children:n}):null,r?(0,g.jsx)(x_,{children:r}):null]}),(0,g.jsx)(xX,{children:t}),i?(0,g.jsx)(xQ,{children:i}):null]})},xq=gH(null),x$=e=>gV(xq,t=>{if(!t)throw Error("usePlotDimensionValue must be used within PlotDimensionsContext.Provider");return t[e]}),x1=(e,t)=>{let n=(0,j.A)(e,["type",t],["asc","asc"]);return[...(0,ei.Ay)(n,e=>null!==e.clusterValues?x0(e.clusterValues):e[t]).values()]},x0=e=>e.map(yg).join(","),x2=e=>!!e.length,x5=e=>null!==e;class x3 extends EventTarget{on(e,t){this.addEventListener(e,t)}off(e,t){this.removeEventListener(e,t)}emit(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t}))}}let x7=(e,t)=>{let[n,r]=e,[i,o]=t;return Math.abs(Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2)))},x9=e=>(e+2.5*Math.PI)%(2*Math.PI),x4=e=>e-Math.PI/2,x6=e=>{let{startAngle:t,endAngle:n,radius:r,offset:i=0,position:o=.5}=e,l=x4(Math.abs((n+t)*o)),a=r+i;return{x:Math.cos(l)*a,y:Math.sin(l)*a}},x8=e=>{switch(e.type){case"bar":return(e=>{let t=y7(e.yValue),n=(e.x0+e.x1)/2,r=(e.y0+e.y1)/2;return e.flipAxes?{x:"none"===e.stackType?t?e.x1:e.x0:n,y:r}:{x:n,y:"none"===e.stackType?t?e.y0:e.y1:r}})(e);case"point":case"line":return{x:e.xPosition,y:e.yPosition};case"tile":return{x:(e.x0+e.x1)/2,y:(e.y0+e.y1)/2};case"donut":case"pie":return(e=>{let t=x6({position:.5,radius:e.pieRadius,startAngle:e.startAngle,endAngle:e.endAngle,offset:-2});return{x:t.x+e.pieCenterX,y:t.y+e.pieCenterY}})(e)}},be=e=>{switch(e.type){case"bar":case"tile":return{x:(e.x0+e.x1)/2,y:(e.y0+e.y1)/2};case"point":case"line":return{x:e.xPosition,y:e.yPosition};case"donut":case"pie":{let t=x6({position:.5,radius:e.pieRadius/2,startAngle:e.startAngle,endAngle:e.endAngle});return{x:t.x+e.pieCenterX,y:t.y+e.pieCenterY}}}},bt=e=>{let{rect:{x0:t,y0:n,x1:r,y1:i},x:o,y:l}=e;return o>=t&&o<=r&&l>=n&&l<=i},bn=e=>{let{dataPoints:t,relativePointerX:n,relativePointerY:r}=e,i=null,o=1/0,l=null,a=1/0,s=null;for(let e of t){!s&&yv(e)&&bt({rect:e,x:n,y:r})&&(s=e);let t=x8(e),u=x7([t.x,t.y],[n,r]);u{var t;let{hitboxes:n,relativePointerX:r,relativePointerY:i}=e;return null!=(t=n.find(e=>yP(e)?bt({rect:e.coords,x:r,y:i}):"pie"===e.type&&(e=>{if((e=>{let{pieCenterX:t,pieCenterY:n,pieRadius:r,relativePointerX:i,relativePointerY:o}=e;return x7([i,o],[t,n])<=r+10})(e)){let{startAngle:t,endAngle:n,relativePointerX:r,relativePointerY:i,pieCenterX:o,pieCenterY:l}=e,a=x9(Math.atan2(i-l,r-o));return a>=t&&a<=n}return!1})(Object.assign(Object.assign({},e),{relativePointerX:r,relativePointerY:i}))))?t:null},bi={activeHitbox:null,pointer:null,plotWidth:null,closestDataPointToAnnotation:null,distanceToAnnotation:1/0,closestGeomDataPoint:null,distanceToGeomMidpoint:1/0},bo=e=>{let{dataPoints:t,addons:n,children:r,flipAxes:i}=e,[o]=(0,O.useState)(()=>new x3),l=x$("plotWidth"),a=x$("plotHeight"),s=(0,O.useRef)(null),u=(0,O.useMemo)(()=>(e=>{let{dataPoints:t,plotWidth:n,plotHeight:r,flipAxes:i}=e,o=i?r:n,l=i?n:r;return t.every(yS)?x1(t,"xPosition").filter(x2).map(e=>{var t,n,r,i;return{type:"xy",dataPoints:e,coords:{x0:null==(t=(0,A.A)(e,"x0"))?void 0:t.x0,x1:null==(n=(0,w.A)(e,"x1"))?void 0:n.x1,y0:null==(r=(0,A.A)(e,"y0"))?void 0:r.y0,y1:null==(i=(0,w.A)(e,"y1"))?void 0:i.y1}}}):t.every(yk)?((e,t,n)=>0===e.length?[]:[{type:"xy",dataPoints:e,coords:{x0:0,x1:t,y0:0,y1:n}}])(t,n,r):t.every(e=>yv(e)||yC(e))?((e,t,n,r)=>{let i=r?"yPosition":"xPosition",o=x1(e,i).filter(x2);return o.map((e,l)=>{let a=(e=>{let{plotMainSize:t,isFirstCluster:n,isLastCluster:r,prevXPosition:i,currentMinXPosition:o,currentMaxXPosition:l,nextXPosition:a}=e,s=0;n||void 0===i||(s=o-(o-i)/2);let u=t;return r||void 0===a||(u=l+(a-l)/2),[s,u]})(Object.assign({plotMainSize:t,isFirstCluster:0===l,isLastCluster:l===o.length-1},(e=>{var t,n,r,i;let{clusters:o,clusterIndex:l,positionKey:a}=e,s=o[l],[u,c]=[o[l-1],o[l+1]],d=null==(t=(0,A.A)(s,a))?void 0:t[a],p=null==(n=(0,w.A)(s,a))?void 0:n[a];return{prevXPosition:null==(r=(0,w.A)(u,a))?void 0:r[a],currentMinXPosition:d,currentMaxXPosition:p,nextXPosition:null==(i=(0,A.A)(c,a))?void 0:i[a]}})({clusters:o,clusterIndex:l,positionKey:i}))),s={[r?"y0":"x0"]:a[0],[r?"y1":"x1"]:a[1],[r?"x0":"y0"]:0,[r?"x1":"y1"]:n};return s.x0===s.x1||s.y0===s.y1?null:{type:"xy",dataPoints:e,coords:s}}).filter(x5)})(t,o,l,i):t.every(yj)?t.map(e=>({type:"xy",dataPoints:[e],coords:{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1}})):t.every(yw)?(e=>{var t;return null!=(t=e.map(e=>({type:"pie",dataPoints:[e],startAngle:e.startAngle,endAngle:e.endAngle,pieCenterX:e.pieCenterX,pieCenterY:e.pieCenterY,pieRadius:e.pieRadius})))?t:[]})(t):[]})({dataPoints:t,plotWidth:l,plotHeight:a,flipAxes:i}),[t,i,a,l]),c=(0,O.useMemo)(()=>!!n.length,[n]),{overlayState:d,overlayEventHandlers:p}=(e=>{let{events:t,getOverlayDimensions:n,hitboxes:r,plotWidth:i}=e,[o,l]=(0,O.useState)(bi);(0,O.useEffect)(()=>{l(e=>{var t;if(null===e.pointer)return e;let n=br(Object.assign({hitboxes:r},e.pointer)),i=bn(Object.assign({dataPoints:null!=(t=null==n?void 0:n.dataPoints)?t:[]},e.pointer));return Object.assign(Object.assign({},e),i)})},[r]);let a=(0,O.useCallback)((e,t)=>{let r=0,o=0,l=1,a=n();return a&&(l=a.width/i,r=(e-a.left)/l,o=(t-a.top)/l),{relativePointerX:r,relativePointerY:o,pointerX:e,pointerY:t,scaleFactor:l}},[n,i]),s=(0,O.useCallback)(e=>{let{clientX:t,clientY:n}=e,o=a(t,n),s=br(Object.assign({hitboxes:r},o));l(e=>Object.assign(Object.assign({},e),{pointer:o,activeHitbox:s,plotWidth:i}))},[a,r,i]),u=(0,O.useCallback)(e=>{var t;let{clientX:n,clientY:o}=e,s=a(n,o),u=br(Object.assign({hitboxes:r},s)),c=bn(Object.assign({dataPoints:null!=(t=null==u?void 0:u.dataPoints)?t:[]},s));l(e=>Object.assign(Object.assign(Object.assign({},e),{pointer:s,activeHitbox:u,plotWidth:i}),c))},[a,r,i]),c=(0,O.useCallback)(e=>{var n;let{clientX:i,clientY:o}=e,l=a(i,o),s=br(Object.assign({hitboxes:r},l)),u=bn(Object.assign({dataPoints:null!=(n=null==s?void 0:s.dataPoints)?n:[]},l));t.emit("click",Object.assign({pointer:l},u))},[t,a,r]),d=(0,O.useCallback)(e=>{let{clientX:t,clientY:n,pointerType:r}=e;l(e=>{let i=e.pointer,o=a(t,n);return"mouse"!==r&&(null==i?void 0:i.relativePointerX)===o.relativePointerX&&i.relativePointerY===o.relativePointerY?e:Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null,closestDataPoint:null,closestGeomDataPoint:null})})},[a]);return(0,O.useEffect)(()=>{let e=e=>{let{clientX:t,clientY:n}=e;null===br(Object.assign({hitboxes:r},a(t,n)))&&null!==o.activeHitbox&&l(e=>Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null}))};return document.addEventListener("pointerup",e),()=>document.removeEventListener("pointerup",e)},[a,r,o.activeHitbox]),(0,O.useEffect)(()=>{let e=()=>{l(e=>Object.assign(Object.assign({},e),{pointer:null,activeHitbox:null,plotWidth:null}))};return t.on("deactivateHitbox",e),()=>t.off("deactivateHitbox",e)},[t]),{overlayState:o,overlayEventHandlers:{onPointerDown:s,onPointerMove:u,onPointerLeave:d,onClick:c}}})({events:o,getOverlayDimensions:(0,O.useCallback)(()=>{var e;return null==(e=s.current)?void 0:e.getBoundingClientRect()},[]),hitboxes:u,plotWidth:l}),h=(0,O.useMemo)(()=>({hitboxes:u,events:o,overlayState:d,overlayEventHandlers:p,overlayRef:s,isInteractive:c}),[u,o,d,p,c]);return(0,g.jsx)(yx.Provider,{value:h,children:r})},bl=(0,O.createContext)(null),ba=()=>(0,O.useContext)(bl)||null,bs=e=>{var{as:t="div",children:n,className:r}=e,i=s$(e,["as","children","className"]);let[o,l]=(0,O.useState)(null),a=(0,O.useMemo)(()=>({container:o}),[o]);return(0,g.jsx)(t,Object.assign({"data-graphy-portal":!0,ref:l},r?{className:r}:{style:{display:"contents"}},i,{children:(0,g.jsx)(bl.Provider,{value:a,children:n})}))},bu=(0,O.createContext)({setFocusedInteraction:()=>{},restoreDefaultInteraction:()=>{},isFocusedInteraction:!1,canUserInteractWithAddon:()=>!0,highlightEditorRef:{current:null},isInHighlightMode:!1,selectedHighlightType:null,_setSelectedHighlightType:()=>{},annotationsAddonRef:{current:null}}),bc=()=>(0,O.useContext)(bu),bd=e=>{let{children:t}=e,[n,r]=(0,O.useState)(null),i=(0,O.useRef)(null),[o,l]=(0,O.useState)(null),a=(0,O.useRef)(null),s=(0,O.useMemo)(()=>({setFocusedInteraction:e=>r(e),restoreDefaultInteraction:()=>r(null),isFocusedInteraction:null!==n,canUserInteractWithAddon:e=>null===n||n===e,highlightEditorRef:i,selectedHighlightType:o,isInHighlightMode:!!o,_setSelectedHighlightType:l,annotationsAddonRef:a}),[n,o]);return(0,g.jsx)(bu.Provider,{value:s,children:t})},bp=h.I4.div(nd(),f6.annotationsMenu),bh=h.I4.div(np(),sN.modern,e=>{let{$isVisible:t}=e;return+!!t},e=>{let{$isSticky:t}=e;return t?"auto":"none"}),bg=h.I4.div(nh(),e=>{let{$isActive:t}=e;return t?"100%":"0"},e=>{let{$isActive:t}=e;return t?"100%":"0"},e=>{let{$isActive:t}=e;return t?f6.focusGuard:"auto"}),bf=(0,h.i7)(ng()),bm=(0,h.i7)(nf()),by=(0,h.i7)(nm()),bx=(0,h.i7)(ny()),bb=(0,h.I4)(ey.UC)(nx(),hY,f6.annotationsMenu,hK(20),uA("overlayBackground"),hK(1),sF.sm,sV.lg,by,sG.subtle,bx,sG.subtle,bf,sG.subtle,bm,sG.subtle),bC={xxs:hK(1),xs:hK(1.5),sm:hK(2),md:hK(2.5),lg:hK(3),xl:hK(4.5)},bv={primary:"textPrimary",muted:"textSecondary",critical:"alert",success:"success",subtle:"textDisabled",warning:"warning"},bj=h.I4.svg(nb(),e=>{let{$variant:t}=e;return t?uA(bv[t]):"currentColor"},uO,uA("grey70"),uT,uA("grey100"),uO,uA("grey70"),uT,uA("grey100")),bA=e=>{var{children:t,title:n,variant:r,size:i="sm"}=e,o=s$(e,["children","title","variant","size"]);let l=(0,O.useId)(),a=bC[i];return(0,g.jsxs)(bj,Object.assign({$variant:"currentColor"===r?void 0:r,"aria-labelledby":n?l:void 0,height:a,width:a,fill:"none",viewBox:"0 0 24 24",role:"img"},o,{children:[n&&(0,g.jsx)("title",{id:l,children:n}),t]}))},bw=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M4.64564 15.9758L4 5H20L19.3544 15.9758C19.2296 18.0962 19.1673 19.1564 18.7147 19.961C18.3163 20.6692 17.7117 21.2394 16.9812 21.5955C16.1515 22 15.0895 22 12.9654 22H11.0346C8.91054 22 7.84851 22 7.01876 21.5955C6.28832 21.2394 5.68366 20.6692 5.28528 19.961C4.83273 19.1564 4.77037 18.0962 4.64564 15.9758Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M11 10C11 9.44773 10.5523 9.00001 10 9.00001C9.44771 9.00001 9 9.44773 9 10V17C9 17.5523 9.44771 18 10 18C10.5523 18 11 17.5523 11 17V10Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M14 9.00001C14.5523 9.00001 15 9.44773 15 10V14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14V10C13 9.44773 13.4477 9.00001 14 9.00001Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7298 1.00001L10.6089 0.999823C10.1119 0.998656 9.61361 0.997486 9.16612 1.17348C8.77664 1.32667 8.43184 1.57518 8.16335 1.89624C7.85488 2.26511 7.69841 2.73821 7.54236 3.21006L7.5043 3.32484L7.27924 4.00001H2C1.44772 4.00001 1 4.44773 1 5.00001C1 5.5523 1.44772 6.00001 2 6.00001H3.0571L3.64979 16.0759C3.71008 17.101 3.75881 17.9294 3.85207 18.5997C3.94825 19.291 4.1011 19.8955 4.41369 20.4512C4.91167 21.3366 5.66749 22.0492 6.58054 22.4944C7.15369 22.7738 7.76614 22.8909 8.4619 22.9463C9.13649 23 9.96628 23 10.9932 23H13.0068C14.0337 23 14.8635 23 15.5381 22.9463C16.2339 22.8909 16.8463 22.7738 17.4195 22.4944C18.3325 22.0492 19.0883 21.3366 19.5863 20.4512C19.8989 19.8955 20.0517 19.291 20.1479 18.5997C20.2412 17.9294 20.2899 17.1011 20.3502 16.0761L20.9429 6.00001H22C22.5523 6.00001 23 5.5523 23 5.00001C23 4.44773 22.5523 4.00001 22 4.00001H16.7208L16.4957 3.32484L16.4576 3.21006C16.3016 2.73821 16.1451 2.26511 15.8366 1.89624C15.5682 1.57518 15.2234 1.32667 14.8339 1.17348C14.3864 0.997486 13.8881 0.998656 13.3911 0.999823L13.2702 1.00001H10.7298ZM15.9767 6.00001C15.9921 6.00037 16.0075 6.00037 16.023 6.00001H18.9394L18.3561 15.9171C18.2928 16.9933 18.248 17.742 18.167 18.324C18.0877 18.8941 17.9831 19.2219 17.8431 19.4707C17.5443 20.0019 17.0909 20.4295 16.543 20.6966C16.2864 20.8217 15.953 20.9069 15.3793 20.9526C14.7934 20.9993 14.0434 21 12.9654 21H11.0346C9.95657 21 9.20655 20.9993 8.62073 20.9526C8.04702 20.9069 7.71358 20.8217 7.45697 20.6966C6.90914 20.4295 6.45565 20.0019 6.15686 19.4707C6.01691 19.2219 5.9123 18.8941 5.83298 18.324C5.75199 17.742 5.70721 16.9933 5.64391 15.9171L5.06055 6.00001H7.97696C7.99245 6.00037 8.00791 6.00037 8.02332 6.00001H15.9767ZM14.6126 4.00001L14.5983 3.95729C14.3746 3.28624 14.3338 3.21675 14.3024 3.17926C14.2487 3.11505 14.1798 3.06534 14.1019 3.03471C14.0564 3.01682 13.9775 3.00001 13.2702 3.00001H10.7298C10.0225 3.00001 9.94362 3.01682 9.89814 3.03471C9.82024 3.06534 9.75128 3.11505 9.69758 3.17926C9.66623 3.21675 9.62535 3.28624 9.40167 3.95729L9.38743 4.00001H14.6126Z",fill:"currentColor"})]})),bk=(0,h.i7)(nC()),bS=h.I4.span(nv(),bk),bP=e=>{var{variant:t="subtle"}=e,n=s$(e,["variant"]);return(0,g.jsx)(bS,{children:(0,g.jsx)(bA,Object.assign({role:"progressbar",variant:t},n,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2A1.5 1.5 0 0 1 12 .5C18.351.5 23.5 5.649 23.5 12S18.351 23.5 12 23.5.5 18.351.5 12a1.5 1.5 0 0 1 3 0A8.5 8.5 0 1 0 12 3.5 1.5 1.5 0 0 1 10.5 2Z",fill:"currentColor"})}))})},bL=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M2 12C2 14.5 5 20 12 20C14.588 20 16.6292 19.2483 18.1742 18.1743L14.1213 14.1213C13.5784 14.6642 12.8284 15 11.9999 15C10.3431 15 8.99991 13.6569 8.99991 12C8.99991 11.1716 9.33571 10.4216 9.87863 9.87866L5.82578 5.82581C3.19179 7.65679 2 10.4243 2 12Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.46967 2.46967C2.76256 2.17678 3.23744 2.17678 3.53033 2.46967L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L18.0737 19.1343C16.4783 20.1062 14.4611 20.75 12 20.75C8.28446 20.75 5.5928 19.2834 3.83476 17.4577C2.10654 15.663 1.25 13.485 1.25 12C1.25 10.3097 2.36419 7.67946 4.68861 5.74927L2.46967 3.53033C2.17678 3.23744 2.17678 2.76256 2.46967 2.46967ZM5.75447 6.81513C3.65136 8.50541 2.75 10.7939 2.75 12C2.75 13.015 3.39346 14.837 4.91524 16.4173C6.4072 17.9666 8.71554 19.25 12 19.25C14.0186 19.25 15.6642 18.7655 16.9768 18.0374L14.0679 15.1286C13.4752 15.521 12.7639 15.75 11.9999 15.75C9.92884 15.75 8.24991 14.0711 8.24991 12C8.24991 11.236 8.47892 10.5247 8.87133 9.93199L5.75447 6.81513ZM9.96907 11.0297C9.82845 11.3235 9.74991 11.6523 9.74991 12C9.74991 13.2426 10.7573 14.25 11.9999 14.25C12.3476 14.25 12.6764 14.1715 12.9702 14.0308L9.96907 11.0297Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M12 4.75C10.9651 4.75 10.0305 4.87735 9.19036 5.09792C9.03236 5.1394 8.87761 5.1842 8.72609 5.23211C8.33114 5.35697 7.90975 5.13803 7.78489 4.74309C7.66002 4.34814 7.87897 3.92675 8.27391 3.80189C8.44903 3.74652 8.62754 3.69485 8.80946 3.64709C9.77804 3.3928 10.8409 3.25 12 3.25C15.7155 3.25 18.4072 4.71662 20.1652 6.54227C21.8935 8.33695 22.75 10.515 22.75 12C22.75 13.0899 22.2895 14.5321 21.3966 15.9082C21.2795 16.0887 21.1545 16.2688 21.0215 16.4476C20.7743 16.78 20.3044 16.849 19.9721 16.6018C19.6397 16.3546 19.5707 15.8847 19.8179 15.5524C19.9317 15.3994 20.0385 15.2456 20.1383 15.0918C20.9206 13.886 21.25 12.7242 21.25 12C21.25 10.985 20.6065 9.16305 19.0848 7.58273C17.5928 6.03338 15.2845 4.75 12 4.75Z",fill:"currentColor"})]})),bM=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,fillRule:"evenodd",clipRule:"evenodd",d:"M11.9998 19.9166C18.9269 19.9166 21.8957 14.4739 21.8957 11.9999C21.8957 9.52596 18.9269 4.08325 11.9998 4.08325C5.07275 4.08325 2.104 9.52596 2.104 11.9999C2.104 14.4739 5.07275 19.9166 11.9998 19.9166ZM11.9997 14.9687C13.6393 14.9687 14.9685 13.6395 14.9685 11.9999C14.9685 10.3603 13.6393 9.03117 11.9997 9.03117C10.3602 9.03117 9.031 10.3603 9.031 11.9999C9.031 13.6395 10.3602 14.9687 11.9997 14.9687Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.84619 11.9999C2.84619 10.9954 3.48294 9.19252 4.98888 7.62866C6.4653 6.09546 8.74959 4.82544 11.9998 4.82544C15.2501 4.82544 17.5344 6.09546 19.0108 7.62866C20.5167 9.19252 21.1535 10.9954 21.1535 11.9999C21.1535 13.0044 20.5167 14.8073 19.0108 16.3712C17.5344 17.9044 15.2501 19.1744 11.9998 19.1744C8.74959 19.1744 6.4653 17.9044 4.98888 16.3712C3.48294 14.8073 2.84619 13.0044 2.84619 11.9999ZM11.9998 3.34106C8.323 3.34106 5.65938 4.7924 3.91965 6.59904C2.20944 8.37503 1.36182 10.5304 1.36182 11.9999C1.36182 13.4694 2.20944 15.6248 3.91965 17.4008C5.65938 19.2074 8.323 20.6588 11.9998 20.6588C15.6767 20.6588 18.3403 19.2074 20.08 17.4008C21.7902 15.6248 22.6379 13.4694 22.6379 11.9999C22.6379 10.5304 21.7902 8.37503 20.08 6.59904C18.3403 4.7924 15.6767 3.34106 11.9998 3.34106ZM9.77318 11.9999C9.77318 10.7702 10.7701 9.77336 11.9997 9.77336C13.2294 9.77336 14.2263 10.7702 14.2263 11.9999C14.2263 13.2296 13.2294 14.2265 11.9997 14.2265C10.7701 14.2265 9.77318 13.2296 9.77318 11.9999ZM11.9997 8.28898C9.95025 8.28898 8.28881 9.95042 8.28881 11.9999C8.28881 14.0494 9.95025 15.7109 11.9997 15.7109C14.0492 15.7109 15.7107 14.0494 15.7107 11.9999C15.7107 9.95042 14.0492 8.28898 11.9997 8.28898Z",fill:"currentColor"})]})),bO=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{d:"M6 12H18",stroke:"currentColor",strokeWidth:2.0038,strokeMiterlimit:22.9256,strokeLinecap:"round",strokeLinejoin:"round"})})),bT=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5C6 3.89543 6.89543 3 8 3C9.10457 3 10 3.89543 10 5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M10 12C10 13.1046 9.10457 14 8 14C6.89543 14 6 13.1046 6 12C6 10.8954 6.89543 10 8 10C9.10457 10 10 10.8954 10 12Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19C6 17.8954 6.89543 17 8 17C9.10457 17 10 17.8954 10 19Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18 5C18 6.10457 17.1046 7 16 7C14.8954 7 14 6.10457 14 5C14 3.89543 14.8954 3 16 3C17.1046 3 18 3.89543 18 5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18 12C18 13.1046 17.1046 14 16 14C14.8954 14 14 13.1046 14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18 19C18 20.1046 17.1046 21 16 21C14.8954 21 14 20.1046 14 19C14 17.8954 14.8954 17 16 17C17.1046 17 18 17.8954 18 19Z",fill:"currentColor"})]})),bD=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V5C11 4.44772 11.4477 4 12 4Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 11.2929C4.68342 10.9024 5.31658 10.9024 5.70711 11.2929L12 17.5858L18.2929 11.2929C18.6834 10.9024 19.3166 10.9024 19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929Z",fill:"currentColor"})]})),bI=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C11.4477 20 11 19.5523 11 19L11 5C11 4.44771 11.4477 4 12 4C12.5523 4 13 4.44771 13 5L13 19C13 19.5523 12.5523 20 12 20Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 12.7071C19.3166 13.0976 18.6834 13.0976 18.2929 12.7071L12 6.41421L5.70711 12.7071C5.31658 13.0976 4.68342 13.0976 4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071Z",fill:"currentColor"})]})),bE=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 12.5523 19.5523 13 19 13L5 13C4.44771 13 4 12.5523 4 12C4 11.4477 4.44771 11 5 11H19C19.5523 11 20 11.4477 20 12Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.41421 12L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",fill:"currentColor"})]})),bH=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11L19 11C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L17.5858 12L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071Z",fill:"currentColor"})]})),bV=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.53033 2.53033C6.82322 2.23744 6.82322 1.76256 6.53033 1.46967C6.23744 1.17678 5.76256 1.17678 5.46967 1.46967L1.46967 5.46967C1.17678 5.76256 1.17678 6.23744 1.46967 6.53033L5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303C6.82322 10.2374 6.82322 9.76256 6.53033 9.46967L3.81066 6.75H16C16.4142 6.75 16.75 6.41421 16.75 6C16.75 5.58579 16.4142 5.25 16 5.25H3.81066L6.53033 2.53033Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4697 14.5303C17.1768 14.2374 17.1768 13.7626 17.4697 13.4697C17.7626 13.1768 18.2374 13.1768 18.5303 13.4697L22.5303 17.4697C22.8232 17.7626 22.8232 18.2374 22.5303 18.5303L18.5303 22.5303C18.2374 22.8232 17.7626 22.8232 17.4697 22.5303C17.1768 22.2374 17.1768 21.7626 17.4697 21.4697L20.1893 18.75H8C7.58579 18.75 7.25 18.4142 7.25 18C7.25 17.5858 7.58579 17.25 8 17.25H20.1893L17.4697 14.5303Z",fill:"currentColor"})]})),bF=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4C5 3.44772 5.44772 3 6 3H14C15.3261 3 16.5979 3.52678 17.5355 4.46447C18.4732 5.40215 19 6.67392 19 8C19 9.32608 18.4732 10.5979 17.5355 11.5355C17.5025 11.5686 17.4691 11.6011 17.4352 11.6331C17.8352 11.8561 18.206 12.1349 18.5355 12.4645C19.4732 13.4021 20 14.6739 20 16C20 17.3261 19.4732 18.5978 18.5355 19.5355C17.5979 20.4732 16.3261 21 15 21H6C5.44772 21 5 20.5523 5 20V4ZM7 5V11H14C14.7956 11 15.5587 10.6839 16.1213 10.1213C16.6839 9.55871 17 8.79565 17 8C17 7.20435 16.6839 6.44129 16.1213 5.87868C15.5587 5.31607 14.7956 5 14 5H7ZM7 13V19H15C15.7956 19 16.5587 18.6839 17.1213 18.1213C17.6839 17.5587 18 16.7956 18 16C18 15.2043 17.6839 14.4413 17.1213 13.8787C16.5587 13.3161 15.7956 13 15 13H7Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})),bB=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.977 3.00003H10C9.44772 3.00003 9 3.44774 9 4.00003C9 4.55231 9.44772 5.00003 10 5.00003H13.557L8.307 19H5C4.44772 19 4 19.4477 4 20C4 20.5523 4.44772 21 5 21H8.97666C8.99216 21.0004 9.00762 21.0004 9.02304 21H14C14.5523 21 15 20.5523 15 20C15 19.4477 14.5523 19 14 19H10.443L15.693 5.00003H19C19.5523 5.00003 20 4.55231 20 4.00003C20 3.44774 19.5523 3.00003 19 3.00003H15.0233C15.0078 2.99966 14.9924 2.99967 14.977 3.00003Z",fill:"currentColor"})})),bz=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.125 3C5.67728 3 6.125 3.44772 6.125 4V11.3889C6.125 12.8013 6.68969 14.1571 7.69698 15.1578C8.70449 16.1587 10.0724 16.7222 11.5 16.7222C12.9276 16.7222 14.2955 16.1587 15.303 15.1578C16.3103 14.1571 16.875 12.8013 16.875 11.3889V4C16.875 3.44772 17.3227 3 17.875 3C18.4273 3 18.875 3.44772 18.875 4V11.3889C18.875 13.3359 18.0964 15.2019 16.7126 16.5767C15.329 17.9512 13.4539 18.7222 11.5 18.7222C9.54614 18.7222 7.67099 17.9512 6.28741 16.5767C4.90361 15.2019 4.125 13.3359 4.125 11.3889V4C4.125 3.44772 4.57272 3 5.125 3ZM2 23C2 22.4477 2.44772 22 3 22H20C20.5523 22 21 22.4477 21 23C21 23.5523 20.5523 24 20 24H3C2.44772 24 2 23.5523 2 23Z",fill:"currentColor"})})),bR=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M20.3891 4.53914C18.2412 2.39125 14.7588 2.39125 12.6109 4.53914L11.1967 5.95335C10.4286 6.72152 9.93511 7.66039 9.7164 8.64786C8.15775 8.51601 6.55361 9.04642 5.36094 10.2391L3.94673 11.6533C1.79884 13.8012 1.79884 17.2836 3.94673 19.4315C6.09461 21.5794 9.57702 21.5794 11.7249 19.4315L13.1391 18.0173C13.9073 17.2491 14.4007 16.3102 14.6194 15.3227C16.1781 15.4546 17.7822 14.9242 18.9749 13.7315L20.3891 12.3173C22.537 10.1694 22.537 6.68702 20.3891 4.53914Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M20.2462 3.82242C17.8908 1.39253 14.0587 1.39253 11.7033 3.82242L10.9926 4.55558C10.6083 4.95214 10.6181 5.58523 11.0147 5.96962C11.4112 6.35402 12.0443 6.34416 12.4287 5.9476L13.1394 5.21444C14.709 3.59519 17.2405 3.59519 18.8101 5.21444C20.3966 6.85116 20.3966 9.51733 18.8101 11.154L17.1154 12.9024C15.6968 14.3659 13.41 14.3659 11.9914 12.9024L11.718 12.6204C11.3336 12.2238 10.7005 12.214 10.304 12.5984C9.90743 12.9827 9.89757 13.6158 10.282 14.0124L10.5553 14.2944C12.7597 16.5685 16.3471 16.5685 18.5515 14.2944L20.2462 12.5461C22.5846 10.1336 22.5846 6.23485 20.2462 3.82242Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M6.88459 11.0976C8.30322 9.63412 10.59 9.63412 12.0086 11.0976L12.282 11.3796C12.6664 11.7762 13.2995 11.786 13.696 11.4016C14.0926 11.0172 14.1024 10.3842 13.718 9.9876L13.4447 9.70562C11.2403 7.43146 7.65294 7.43146 5.44853 9.70562L3.75383 11.4539C1.41539 13.8664 1.41539 17.7652 3.75383 20.1776C6.1092 22.6075 9.9413 22.6075 12.2967 20.1776L13.0074 19.4444C13.3917 19.0479 13.3819 18.4148 12.9853 18.0304C12.5888 17.646 11.9557 17.6558 11.5713 18.0524L10.8606 18.7856C9.29102 20.4048 6.75949 20.4048 5.18989 18.7856C3.60337 17.1488 3.60337 14.4827 5.18989 12.846L6.88459 11.0976Z",fill:"currentColor"})]})),bY=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z",fill:"currentColor"})})),bG=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M2.25 11.75C2.25 11.3358 2.58579 11 3 11H15C15.4142 11 15.75 11.3358 15.75 11.75C15.75 12.1642 15.4142 12.5 15 12.5H3C2.58579 12.5 2.25 12.1642 2.25 11.75Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M2.25 17.75C2.25 17.3358 2.58579 17 3 17L17 17C17.4142 17 17.75 17.3358 17.75 17.75C17.75 18.1642 17.4142 18.5 17 18.5L3 18.5C2.58579 18.5 2.25 18.1642 2.25 17.75Z",fill:"currentColor"})]})),bW=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M5.25 11.75C5.25 11.3358 5.58579 11 6 11H18C18.4142 11 18.75 11.3358 18.75 11.75C18.75 12.1642 18.4142 12.5 18 12.5H6C5.58579 12.5 5.25 12.1642 5.25 11.75Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M2.25 17.75C2.25 17.3358 2.58579 17 3 17H21C21.4142 17 21.75 17.3358 21.75 17.75C21.75 18.1642 21.4142 18.5 21 18.5H3C2.58579 18.5 2.25 18.1642 2.25 17.75Z",fill:"currentColor"})]})),bU=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M3 5C2.58579 5 2.25 5.33579 2.25 5.75C2.25 6.16421 2.58579 6.5 3 6.5H21C21.4142 6.5 21.75 6.16421 21.75 5.75C21.75 5.33579 21.4142 5 21 5L3 5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M8.25 11.75C8.25 11.3358 8.58579 11 9 11H21C21.4142 11 21.75 11.3358 21.75 11.75C21.75 12.1642 21.4142 12.5 21 12.5H9C8.58579 12.5 8.25 12.1642 8.25 11.75Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M6.25 17.75C6.25 17.3358 6.58579 17 7 17H21C21.4142 17 21.75 17.3358 21.75 17.75C21.75 18.1642 21.4142 18.5 21 18.5H7C6.58579 18.5 6.25 18.1642 6.25 17.75Z",fill:"currentColor"})]})),bN=(0,O.createContext)(null),bK=uE(bN,"Graph"),bZ=e=>{var{textColor:t="currentColor"}=e,n=s$(e,["textColor"]);let r=ma(),i=bK(),o=r.values.grey60,l="string"==typeof t&&""!==t.trim()&&"currentColor"!==t;try{l&&(0,F.bJ)(i(t),r.values.grey100)>=1.3&&(o="none")}catch(e){}return(0,g.jsxs)(bA,Object.assign({},n,{children:[(0,g.jsx)("rect",{x:"3",y:"19.7395",width:"18",height:"3.375",rx:"1.125",fill:t,stroke:o,strokeWidth:1}),(0,g.jsx)("path",{d:"M18.75 3.05249C19.3713 3.05249 19.875 3.55617 19.875 4.17749V4.55249C19.8748 5.17366 19.3712 5.67749 18.75 5.67749H13.3125V16.365C13.3122 16.986 12.8086 17.4899 12.1875 17.49H11.8125C11.1913 17.49 10.6878 16.9861 10.6875 16.365V5.67749H5.25C4.62879 5.67749 4.12518 5.17366 4.125 4.55249V4.17749C4.125 3.55617 4.62868 3.05249 5.25 3.05249H18.75Z",fill:"currentColor"})]}))},bX=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5V6L19 6V4.5L5 4.5Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10L19 10V12.5L5 12.5V10Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 16L19 16V19.5H5V16Z",fill:"currentColor"})]})),b_=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H13V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H11V5C11 4.44772 11.4477 4 12 4Z",fill:"currentColor"})})),bQ=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7687 3.21967C8.0616 3.51256 8.0616 3.98744 7.7687 4.28033L5.56066 6.48837H15.0872C18.8729 6.48837 21.9419 9.5573 21.9419 13.343C21.9419 17.1287 18.8729 20.1977 15.0872 20.1977H10.7267C10.3125 20.1977 9.97674 19.8619 9.97674 19.4477C9.97674 19.0335 10.3125 18.6977 10.7267 18.6977H15.0872C18.0445 18.6977 20.4419 16.3003 20.4419 13.343C20.4419 10.3857 18.0445 7.98837 15.0872 7.98837H5.56066L7.7687 10.1964C8.0616 10.4893 8.0616 10.9642 7.7687 11.2571C7.47581 11.55 7.00094 11.55 6.70804 11.2571L3.21967 7.7687C2.92678 7.47581 2.92678 7.00094 3.21967 6.70804L6.70804 3.21967C7.00094 2.92678 7.47581 2.92678 7.7687 3.21967Z",fill:"currentColor"})})),bJ=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"})})),bq=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 8.29289C11.6834 7.90237 12.3166 7.90237 12.7071 8.29289L18.7071 14.2929C19.0976 14.6834 19.0976 15.3166 18.7071 15.7071C18.3166 16.0976 17.6834 16.0976 17.2929 15.7071L12 10.4142L6.70711 15.7071C6.31658 16.0976 5.68342 16.0976 5.29289 15.7071C4.90237 15.3166 4.90237 14.6834 5.29289 14.2929L11.2929 8.29289Z",fill:"currentColor"})})),b$=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6C6.39052 5.60948 7.02369 5.60948 7.41421 6L12 10.5858L16.5858 5.99999C16.9763 5.60946 17.6095 5.60946 18 5.99999C18.3905 6.39051 18.3905 7.02367 18 7.4142L13.4142 12L18 16.5858C18.3905 16.9763 18.3905 17.6095 18 18C17.6095 18.3905 16.9763 18.3905 16.5858 18L12 13.4142L7.4142 18C7.02368 18.3905 6.39051 18.3905 5.99999 18C5.60946 17.6095 5.60946 16.9763 5.99999 16.5858L10.5858 12L6 7.41421C5.60947 7.02369 5.60947 6.39052 6 6Z",fill:"currentColor"})})),b1=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M0 19.28V18.44H0.38C0.646667 18.44 0.86 18.4 1.02 18.32C1.18 18.24 1.32667 18.0867 1.46 17.86C1.59333 17.6333 1.74 17.3067 1.9 16.88L6.34 5H7.9L12.42 17.38C12.5267 17.66 12.64 17.88 12.76 18.04C12.88 18.1867 13.0267 18.2933 13.2 18.36C13.3733 18.4133 13.5867 18.44 13.84 18.44H14.1V19.28H8.6V18.44H9.06C9.46 18.44 9.76 18.3667 9.96 18.22C10.16 18.06 10.26 17.8133 10.26 17.48C10.26 17.4 10.2533 17.3267 10.24 17.26C10.2267 17.18 10.2067 17.1 10.18 17.02C10.1667 16.9267 10.14 16.8333 10.1 16.74L9.3 14.5H4.04L3.28 16.6C3.24 16.7067 3.20667 16.8133 3.18 16.92C3.15333 17.0267 3.13333 17.1267 3.12 17.22C3.10667 17.3 3.1 17.38 3.1 17.46C3.1 17.7933 3.20667 18.04 3.42 18.2C3.64667 18.36 3.98 18.44 4.42 18.44H4.88V19.28H0ZM4.42 13.5H8.94L7.7 10C7.56667 9.6 7.43333 9.22 7.3 8.86C7.18 8.5 7.06667 8.15333 6.96 7.82C6.86667 7.48667 6.78 7.16 6.7 6.84C6.64667 7.08 6.58667 7.31333 6.52 7.54C6.46667 7.76667 6.4 8 6.32 8.24C6.25333 8.46667 6.17333 8.71333 6.08 8.98C6 9.23333 5.9 9.51333 5.78 9.82L4.42 13.5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18.1996 19.48C17.6129 19.48 17.0796 19.3667 16.5996 19.14C16.1329 18.9 15.7662 18.5467 15.4996 18.08C15.2329 17.6 15.0996 17 15.0996 16.28C15.0996 15.2133 15.4729 14.4267 16.2196 13.92C16.9796 13.4133 18.1262 13.1333 19.6596 13.08L21.3196 13.02V11.82C21.3196 11.34 21.2796 10.92 21.1996 10.56C21.1196 10.1867 20.9462 9.89333 20.6796 9.68C20.4129 9.46667 20.0062 9.36 19.4596 9.36C18.9529 9.36 18.5662 9.45333 18.2996 9.64C18.0329 9.82667 17.8529 10.0867 17.7596 10.42C17.6796 10.74 17.6396 11.1133 17.6396 11.54C17.0796 11.54 16.6529 11.4467 16.3596 11.26C16.0796 11.06 15.9396 10.7333 15.9396 10.28C15.9396 9.81333 16.0996 9.44 16.4196 9.16C16.7529 8.88 17.1929 8.68 17.7396 8.56C18.2862 8.42667 18.8862 8.36 19.5396 8.36C20.7662 8.36 21.6796 8.62 22.2796 9.14C22.8929 9.66 23.1996 10.5533 23.1996 11.82V17C23.1996 17.3733 23.2396 17.6667 23.3196 17.88C23.3996 18.08 23.5329 18.2267 23.7196 18.32C23.9062 18.4 24.1462 18.44 24.4396 18.44H24.4996V19.28H21.7996L21.4796 17.56H21.3196C21.0396 17.9333 20.7662 18.2667 20.4996 18.56C20.2329 18.84 19.9196 19.0667 19.5596 19.24C19.2129 19.4 18.7596 19.48 18.1996 19.48ZM18.6596 18.24C19.2062 18.24 19.6729 18.1267 20.0596 17.9C20.4596 17.6733 20.7662 17.3533 20.9796 16.94C21.2062 16.5133 21.3196 16.02 21.3196 15.46V13.84L20.0396 13.9C19.2796 13.9267 18.6796 14.04 18.2396 14.24C17.8129 14.44 17.5062 14.72 17.3196 15.08C17.1329 15.4267 17.0396 15.86 17.0396 16.38C17.0396 16.7933 17.0996 17.14 17.2196 17.42C17.3396 17.6867 17.5196 17.8933 17.7596 18.04C17.9996 18.1733 18.2996 18.24 18.6596 18.24Z",fill:"currentColor"})]})),b0=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M2.38 19H0L5.24 5H7.98L13.2 19H10.74L9.42 15.54H3.68L2.38 19ZM6.54 7.48L4.32 13.58H8.78L6.54 7.48Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M23.5197 17.12H23.9597V19H22.8197C21.5664 19 20.9397 18.4533 20.9397 17.36C20.1664 18.5333 19.0397 19.12 17.5597 19.12C16.4131 19.12 15.4931 18.8533 14.7997 18.32C14.1064 17.7867 13.7597 17.0533 13.7597 16.12C13.7597 15.0667 14.1331 14.26 14.8797 13.7C15.6264 13.1267 16.7131 12.84 18.1397 12.84H20.7197V12.22C20.7197 11.6467 20.5197 11.2 20.1197 10.88C19.7331 10.5467 19.1864 10.38 18.4797 10.38C17.8531 10.38 17.3331 10.52 16.9197 10.8C16.5064 11.0667 16.2597 11.4267 16.1797 11.88H14.0597C14.1664 10.88 14.6197 10.0933 15.4197 9.52C16.2331 8.93333 17.2864 8.64 18.5797 8.64C19.9531 8.64 21.0064 8.96 21.7397 9.6C22.4864 10.24 22.8597 11.16 22.8597 12.36V16.46C22.8597 16.7133 22.9131 16.8867 23.0197 16.98C23.1264 17.0733 23.2931 17.12 23.5197 17.12ZM20.7197 14.8V14.44H18.0397C16.6531 14.44 15.9597 14.9533 15.9597 15.98C15.9597 16.42 16.1264 16.7733 16.4597 17.04C16.8064 17.3067 17.2731 17.44 17.8597 17.44C18.7531 17.44 19.4464 17.2 19.9397 16.72C20.4464 16.24 20.7064 15.6 20.7197 14.8Z",fill:"currentColor"})]})),b2=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M2.32955 19.5455H0L5.23438 5H7.76989L13.0043 19.5455H10.6747L6.5625 7.64205H6.44886L2.32955 19.5455ZM2.72017 13.8494H10.277V15.696H2.72017V13.8494Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18.107 19.7869C17.4157 19.7869 16.7907 19.6591 16.232 19.4034C15.6733 19.143 15.2306 18.7666 14.9039 18.2741C14.5819 17.7817 14.4209 17.178 14.4209 16.4631C14.4209 15.8475 14.5393 15.3409 14.7761 14.9432C15.0128 14.5455 15.3324 14.2306 15.7349 13.9986C16.1373 13.7666 16.5871 13.5914 17.0843 13.473C17.5815 13.3546 18.0881 13.2647 18.6042 13.2031C19.2576 13.1274 19.7879 13.0658 20.1951 13.0185C20.6023 12.9664 20.8982 12.8835 21.0829 12.7699C21.2675 12.6563 21.3599 12.4716 21.3599 12.2159V12.1662C21.3599 11.5459 21.1847 11.0653 20.8343 10.7244C20.4886 10.3835 19.9726 10.2131 19.286 10.2131C18.571 10.2131 18.0076 10.3717 17.5957 10.6889C17.1885 11.0014 16.9067 11.3494 16.7505 11.733L14.7547 11.2784C14.9915 10.6155 15.3371 10.0805 15.7917 9.6733C16.251 9.26136 16.7789 8.96307 17.3755 8.77841C17.9721 8.58902 18.5994 8.49432 19.2576 8.49432C19.6932 8.49432 20.1548 8.5464 20.6425 8.65057C21.135 8.75 21.5942 8.93466 22.0204 9.20455C22.4512 9.47443 22.804 9.86032 23.0786 10.3622C23.3532 10.8594 23.4905 11.5057 23.4905 12.3011V19.5455H21.4167V18.054H21.3315C21.1941 18.3286 20.9882 18.5985 20.7136 18.8636C20.4389 19.1288 20.0862 19.349 19.6553 19.5241C19.2244 19.6993 18.7083 19.7869 18.107 19.7869ZM18.5687 18.0824C19.1558 18.0824 19.6577 17.9664 20.0744 17.7344C20.4958 17.5024 20.8154 17.1993 21.0332 16.8253C21.2557 16.4465 21.367 16.0417 21.367 15.6108V14.2045C21.2912 14.2803 21.1444 14.3513 20.9266 14.4176C20.7136 14.4792 20.4697 14.5336 20.1951 14.581C19.9205 14.6236 19.6529 14.6638 19.3925 14.7017C19.1321 14.7348 18.9143 14.7633 18.7391 14.7869C18.3272 14.839 17.9508 14.9266 17.6099 15.0497C17.2737 15.1728 17.0038 15.3504 16.8002 15.5824C16.6013 15.8097 16.5019 16.1127 16.5019 16.4915C16.5019 17.017 16.696 17.4148 17.0843 17.6847C17.4726 17.9498 17.9673 18.0824 18.5687 18.0824Z",fill:"currentColor"})]})),b5=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M6.788 19.3735C5.73033 19.3735 4.84367 19.1297 4.128 18.642C3.41867 18.148 2.88667 17.369 2.532 16.305C2.17733 15.2347 2 13.835 2 12.106C2 10.4023 2.17733 9.03117 2.532 7.9925C2.88667 6.9475 3.41867 6.1875 4.128 5.7125C4.84367 5.2375 5.73033 5 6.788 5C7.852 5 8.73867 5.2375 9.448 5.7125C10.1573 6.1875 10.6893 6.9475 11.044 7.9925C11.3987 9.03117 11.576 10.4023 11.576 12.106C11.576 13.835 11.3987 15.2347 11.044 16.305C10.6893 17.369 10.1573 18.148 9.448 18.642C8.73867 19.1297 7.852 19.3735 6.788 19.3735ZM6.788 17.7965C7.27567 17.7965 7.70633 17.7047 8.08 17.521C8.46 17.3373 8.77667 17.0302 9.03 16.5995C9.28333 16.1688 9.47333 15.5893 9.6 14.861C9.733 14.1263 9.7995 13.208 9.7995 12.106C9.7995 11.023 9.733 10.1268 9.6 9.4175C9.47333 8.70183 9.28017 8.13817 9.0205 7.7265C8.76717 7.3085 8.45367 7.014 8.08 6.843C7.70633 6.66567 7.27567 6.577 6.788 6.577C6.30033 6.577 5.86967 6.66567 5.496 6.843C5.12233 7.014 4.80567 7.3085 4.546 7.7265C4.29267 8.13817 4.0995 8.70183 3.9665 9.4175C3.83983 10.1268 3.7765 11.023 3.7765 12.106C3.7765 13.208 3.83983 14.1263 3.9665 14.861C4.0995 15.5893 4.29267 16.1688 4.546 16.5995C4.80567 17.0302 5.12233 17.3373 5.496 17.521C5.86967 17.7047 6.30033 17.7965 6.788 17.7965ZM6.788 13.455C6.45233 13.4487 6.21167 13.3347 6.066 13.113C5.92667 12.885 5.857 12.562 5.857 12.144C5.857 11.7323 5.92667 11.4125 6.066 11.1845C6.21167 10.9565 6.45233 10.8425 6.788 10.8425C7.12367 10.8425 7.36117 10.9565 7.5005 11.1845C7.64617 11.4125 7.719 11.7323 7.719 12.144C7.719 12.562 7.64617 12.885 7.5005 13.113C7.36117 13.3347 7.12367 13.4487 6.788 13.455Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M18.1787 19.3735C17.121 19.3735 16.2343 19.1297 15.5187 18.642C14.8093 18.148 14.2773 17.369 13.9227 16.305C13.568 15.2347 13.3907 13.835 13.3907 12.106C13.3907 10.4023 13.568 9.03117 13.9227 7.9925C14.2773 6.9475 14.8093 6.1875 15.5187 5.7125C16.2343 5.2375 17.121 5 18.1787 5C19.2427 5 20.1293 5.2375 20.8387 5.7125C21.548 6.1875 22.08 6.9475 22.4347 7.9925C22.7893 9.03117 22.9667 10.4023 22.9667 12.106C22.9667 13.835 22.7893 15.2347 22.4347 16.305C22.08 17.369 21.548 18.148 20.8387 18.642C20.1293 19.1297 19.2427 19.3735 18.1787 19.3735ZM18.1787 17.7965C18.6663 17.7965 19.097 17.7047 19.4707 17.521C19.8507 17.3373 20.1673 17.0302 20.4207 16.5995C20.674 16.1688 20.864 15.5893 20.9907 14.861C21.1237 14.1263 21.1902 13.208 21.1902 12.106C21.1902 11.023 21.1237 10.1268 20.9907 9.4175C20.864 8.70183 20.6708 8.13817 20.4112 7.7265C20.1578 7.3085 19.8443 7.014 19.4707 6.843C19.097 6.66567 18.6663 6.577 18.1787 6.577C17.691 6.577 17.2603 6.66567 16.8867 6.843C16.513 7.014 16.1963 7.3085 15.9367 7.7265C15.6833 8.13817 15.4902 8.70183 15.3572 9.4175C15.2305 10.1268 15.1672 11.023 15.1672 12.106C15.1672 13.208 15.2305 14.1263 15.3572 14.861C15.4902 15.5893 15.6833 16.1688 15.9367 16.5995C16.1963 17.0302 16.513 17.3373 16.8867 17.521C17.2603 17.7047 17.691 17.7965 18.1787 17.7965ZM18.1787 13.455C17.843 13.4487 17.6023 13.3347 17.4567 13.113C17.3173 12.885 17.2477 12.562 17.2477 12.144C17.2477 11.7323 17.3173 11.4125 17.4567 11.1845C17.6023 10.9565 17.843 10.8425 18.1787 10.8425C18.5143 10.8425 18.7518 10.9565 18.8912 11.1845C19.0368 11.4125 19.1097 11.7323 19.1097 12.144C19.1097 12.562 19.0368 12.885 18.8912 13.113C18.7518 13.3347 18.5143 13.4487 18.1787 13.455Z",fill:"currentColor"})]})),b3=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M1 16.1935L1.22491 16.0205L1.24221 15.6572C1.53055 14.9536 1.82466 14.2789 2.12454 13.633C2.43595 12.9871 2.75889 12.3239 3.09337 11.6434C3.19718 11.4243 3.30098 11.2051 3.40478 10.986C3.52012 10.7669 3.62969 10.542 3.73349 10.3113C3.72196 10.2651 3.71619 10.219 3.71619 10.1729C3.71619 10.1152 3.72773 10.0518 3.75079 9.98257C3.91227 9.7519 4.03914 9.54429 4.13141 9.35975C4.23521 9.17521 4.33325 8.9849 4.42552 8.78883C4.52932 8.55816 4.63889 8.32748 4.75423 8.09681C4.8811 7.86613 5.03681 7.64122 5.22135 7.42208L5.34245 7.24908L5.53276 7.26638C5.57889 7.24331 5.62503 7.22601 5.67116 7.21448C5.72883 7.19141 5.79803 7.17988 5.87877 7.17988L6.19018 7.23178C6.57079 7.05877 6.90527 6.8108 7.19361 6.48785C7.49349 6.15337 7.79337 5.75546 8.09325 5.29411L8.30085 5L8.57766 5.17301C8.63533 5.20761 8.7276 5.24221 8.85447 5.27681C8.98134 5.31141 9.11398 5.35178 9.25239 5.39791C9.49459 5.45558 9.73103 5.52478 9.96171 5.60552C10.1924 5.67472 10.3712 5.77276 10.498 5.89963L10.5845 6.05534C10.6076 6.18221 10.6249 6.29754 10.6364 6.40135C10.6595 6.50515 10.6826 6.60896 10.7056 6.71276C10.7518 6.95497 10.7921 7.19718 10.8267 7.43938C10.8613 7.67006 10.8844 7.92957 10.8959 8.21791C10.9536 8.44859 11.0055 8.68503 11.0516 8.92724C11.1093 9.15791 11.1612 9.38858 11.2074 9.61926C11.265 9.95374 11.3285 10.2767 11.3977 10.5881C11.4669 10.888 11.5591 11.1763 11.6745 11.4531C11.7898 11.4531 11.859 11.4589 11.8821 11.4704C12.0205 11.4128 12.182 11.3782 12.3665 11.3666L12.5914 11.3493L12.6606 11.5569C12.6837 11.5915 12.7125 11.6261 12.7471 11.6607C12.7817 11.6953 12.8221 11.7299 12.8682 11.7645C13.0527 11.7761 13.1854 11.8164 13.2661 11.8856C13.3584 11.9433 13.4334 12.001 13.491 12.0586C13.5141 12.0817 13.5429 12.1105 13.5775 12.1451C13.6121 12.1682 13.641 12.1855 13.664 12.197L13.9754 12.3182L13.8024 12.6469C13.6756 12.8891 13.4795 13.1255 13.2142 13.3562C12.9605 13.5869 12.6721 13.7772 12.3492 13.9271C12.3723 14.0078 12.3838 14.0828 12.3838 14.152C12.3953 14.2212 12.4126 14.302 12.4357 14.3942C12.4818 14.6249 12.5164 14.8671 12.5395 15.1208C12.5741 15.3631 12.5741 15.6168 12.5395 15.8821C12.4242 16.182 12.2858 16.453 12.1243 16.6952C11.9743 16.9259 11.7898 17.1393 11.5707 17.3353C11.3631 17.5199 11.1266 17.6756 10.8613 17.8024C10.5961 17.9178 10.3193 17.9812 10.0309 17.9927C9.86944 17.9581 9.74834 17.9178 9.6676 17.8716C9.5984 17.8255 9.53496 17.7794 9.47729 17.7332C9.38502 17.664 9.31005 17.6179 9.25239 17.5948L9.02748 17.491L9.09668 17.2315C9.13128 17.1393 9.12551 17.0585 9.07938 16.9893C9.04478 16.9201 8.96404 16.8278 8.83717 16.7125C8.79104 16.6779 8.75067 16.6433 8.71607 16.6087C8.68147 16.5626 8.6411 16.5164 8.59496 16.4703L8.24895 16.0724L8.81987 15.9167C9.16588 15.8244 9.39656 15.7091 9.51189 15.5707C9.62723 15.4207 9.67337 15.1612 9.6503 14.7921C9.36196 14.7345 9.12551 14.7287 8.94097 14.7748C8.75643 14.8094 8.57189 14.8498 8.38735 14.8959C8.12208 14.9651 7.86257 15.0286 7.60883 15.0862C7.35509 15.1324 7.07828 15.1555 6.7784 15.1555C6.58233 15.1555 6.37472 15.1382 6.15558 15.1035L5.96527 15.0862L5.91337 14.8959C5.91337 14.8729 5.89607 14.8498 5.86147 14.8267C5.8384 14.7921 5.81533 14.7633 5.79227 14.7402C5.7346 14.671 5.66539 14.5788 5.58466 14.4634C5.50392 14.3481 5.48662 14.2039 5.53276 14.0309C5.45202 13.904 5.40589 13.7714 5.39435 13.633C5.34822 13.7253 5.30785 13.8175 5.27325 13.9098C5.25018 13.9905 5.22711 14.0713 5.20405 14.152L5.13484 14.3769L4.90993 14.4115C4.88687 14.4346 4.8638 14.4692 4.84073 14.5153C4.8292 14.5615 4.8292 14.5961 4.84073 14.6191L4.90993 14.8094L4.73693 14.9651C4.71386 14.9997 4.68503 15.0286 4.65043 15.0516C4.61582 15.0747 4.58699 15.0978 4.56392 15.1208C4.54086 15.2477 4.50625 15.3688 4.46012 15.4842C4.42552 15.5995 4.38515 15.7148 4.33902 15.8302C4.28135 16.0147 4.22368 16.1935 4.16601 16.3665C4.11987 16.5395 4.09681 16.7125 4.09681 16.8855L4.0276 17.1104C3.96994 17.2027 3.89497 17.2719 3.8027 17.318C3.72196 17.3642 3.64122 17.4045 3.56049 17.4391C3.44515 17.4853 3.36441 17.5314 3.31828 17.5775L3.26638 17.8024L3.00687 17.837C2.85693 17.8716 2.74736 17.8947 2.67816 17.9062C2.62049 17.9178 2.55129 17.9235 2.47055 17.9235L2.24564 17.9062C2.10724 17.7678 1.9919 17.664 1.89963 17.5948C1.81889 17.5141 1.72086 17.4449 1.60552 17.3872L1.50172 17.2488C1.45558 17.1566 1.42675 17.0758 1.41521 17.0066C1.40368 16.9259 1.38638 16.8451 1.36331 16.7644C1.34025 16.6145 1.30564 16.5107 1.25951 16.453L1 16.1935ZM6.51889 11.6953C6.35742 11.926 6.20171 12.1682 6.05177 12.422C6.13251 12.4104 6.20748 12.4047 6.27668 12.4047C6.35742 12.4047 6.43815 12.3989 6.51889 12.3874C6.92257 12.3643 7.29742 12.3355 7.64343 12.3009C7.98944 12.2663 8.36429 12.2086 8.76797 12.1278C8.6757 11.7011 8.57189 11.2686 8.45656 10.8303C8.35275 10.3805 8.23742 9.93067 8.11055 9.48085L8.02404 9.65386C7.7357 9.96527 7.45889 10.2997 7.19361 10.6573C6.92834 11.0148 6.7092 11.3551 6.53619 11.678L6.51889 11.6953Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M23.0392 16.3838C22.97 16.5799 22.8662 16.7817 22.7278 16.9893C22.6009 17.1854 22.4452 17.3642 22.2607 17.5256C22.0877 17.6756 21.8916 17.8024 21.6724 17.9062C21.4533 18.01 21.2226 18.0677 20.9804 18.0793C20.8305 18.0447 20.7267 18.0043 20.669 17.9581C20.6229 17.9235 20.571 17.8889 20.5133 17.8543C20.4787 17.8313 20.4441 17.814 20.4095 17.8024C20.3864 17.7794 20.3634 17.7621 20.3403 17.7505L20.1327 17.664L20.2019 17.4391C20.225 17.3469 20.2192 17.2777 20.1846 17.2315C20.15 17.1739 20.0808 17.0989 19.977 17.0066C19.9424 16.972 19.9078 16.9374 19.8732 16.9028C19.8386 16.8682 19.8097 16.8336 19.7867 16.799L19.4926 16.4703L19.9597 16.3492C20.248 16.2685 20.4383 16.1647 20.5306 16.0378C20.6344 15.9109 20.6748 15.6975 20.6517 15.3977C20.421 15.3515 20.225 15.3458 20.0635 15.3804C19.9135 15.415 19.7578 15.4553 19.5964 15.5015C19.3888 15.5591 19.1754 15.611 18.9562 15.6572C18.7486 15.6918 18.518 15.7091 18.2642 15.7091C18.172 15.7091 18.0855 15.7091 18.0047 15.7091C17.924 15.6975 17.8375 15.686 17.7452 15.6745L17.5722 15.6399C17.5491 15.513 17.5261 15.4438 17.503 15.4323C17.4799 15.4092 17.4569 15.3861 17.4338 15.3631C17.3761 15.3054 17.3127 15.2304 17.2435 15.1382C17.1858 15.0343 17.1743 14.9075 17.2089 14.7575C17.1512 14.6537 17.1166 14.5499 17.1051 14.4461C17.0359 14.5845 16.984 14.7287 16.9494 14.8786L16.8802 15.0516L16.7072 15.0862C16.6841 15.0978 16.6668 15.1266 16.6553 15.1728C16.6437 15.2074 16.638 15.2362 16.638 15.2593L16.5515 15.5534C16.5284 15.5764 16.5053 15.5995 16.4823 15.6226C16.4592 15.6341 16.4361 15.6514 16.4131 15.6745C16.39 15.7783 16.3612 15.8821 16.3266 15.9859C16.292 16.0897 16.2574 16.1877 16.2228 16.28C16.1651 16.4299 16.1132 16.5799 16.067 16.7298C16.0324 16.8682 16.0209 17.0066 16.0324 17.145L15.9632 17.3353C15.9056 17.4045 15.8421 17.4622 15.7729 17.5083C15.7037 17.5429 15.6345 17.5775 15.5653 17.6121C15.5423 17.6352 15.5077 17.6583 15.4615 17.6813C15.4269 17.6929 15.3981 17.7044 15.375 17.7159L15.3231 17.9062L15.1155 17.9408C14.9886 17.9639 14.8964 17.9812 14.8387 17.9927C14.7926 18.0043 14.7349 18.01 14.6657 18.01L14.4927 17.9927C14.3658 17.8889 14.2678 17.8082 14.1986 17.7505C14.1294 17.6813 14.0486 17.6179 13.9564 17.5602C13.8526 17.4218 13.7949 17.318 13.7834 17.2488C13.7718 17.1796 13.7603 17.1162 13.7488 17.0585C13.7257 16.9893 13.7142 16.9316 13.7142 16.8855C13.7026 16.8394 13.6853 16.8048 13.6623 16.7817L13.4374 16.5741L13.6277 16.4184L13.645 16.1243C13.8756 15.5361 14.1178 14.9709 14.3716 14.4288C14.6369 13.8867 14.9079 13.3331 15.1847 12.768C15.277 12.5834 15.3635 12.3989 15.4442 12.2143C15.5365 12.0298 15.6288 11.8453 15.721 11.6607C15.7095 11.6261 15.7037 11.5858 15.7037 11.5396C15.7037 11.4935 15.7153 11.4416 15.7383 11.3839C15.8652 11.1878 15.969 11.0148 16.0497 10.8649C16.1305 10.7034 16.2112 10.542 16.292 10.3805C16.3842 10.1844 16.4765 9.99411 16.5688 9.80957C16.6726 9.62503 16.7994 9.43472 16.9494 9.23865L17.2262 9.11754C17.2608 9.10601 17.3012 9.09447 17.3473 9.08294C17.3934 9.05987 17.4453 9.04834 17.503 9.04834L17.7625 9.08294C18.0855 8.933 18.368 8.7254 18.6102 8.46012C18.8524 8.18331 19.1004 7.8546 19.3542 7.47399L19.5272 7.23178L19.7521 7.37018C19.8097 7.40478 19.8905 7.43938 19.9943 7.47399C20.0981 7.49705 20.2077 7.52589 20.323 7.56049C20.5306 7.60662 20.7267 7.65852 20.9112 7.71619C21.0958 7.77386 21.2457 7.86037 21.361 7.9757C21.4302 8.16024 21.4706 8.29865 21.4821 8.39092C21.4937 8.48319 21.511 8.57546 21.534 8.66773C21.5686 8.8638 21.5975 9.05987 21.6205 9.25595C21.6551 9.45202 21.6782 9.67116 21.6897 9.91337C21.7474 10.1094 21.7935 10.3055 21.8281 10.5016C21.8743 10.6861 21.9147 10.8764 21.9493 11.0725C22.0069 11.3493 22.0646 11.6204 22.1223 11.8856C22.1799 12.1394 22.2549 12.3816 22.3472 12.6123C22.4394 12.6123 22.4971 12.618 22.5202 12.6296C22.5778 12.6065 22.6355 12.5892 22.6932 12.5777C22.7624 12.5661 22.8374 12.5546 22.9181 12.5431L23.1084 12.5258L23.1776 12.6988C23.1891 12.7564 23.2468 12.8141 23.3506 12.8718C23.5005 12.8833 23.6101 12.9179 23.6793 12.9756C23.7485 13.0217 23.812 13.0736 23.8696 13.1313C23.9158 13.1774 23.9619 13.212 24.008 13.2351L24.2675 13.3389L24.1291 13.5984C24.0138 13.806 23.8466 14.0078 23.6274 14.2039C23.4198 14.3885 23.1834 14.5442 22.9181 14.671C22.9296 14.7402 22.9354 14.8094 22.9354 14.8786C22.9469 14.9363 22.9642 14.9997 22.9873 15.0689C23.0219 15.265 23.0507 15.4669 23.0738 15.6745C23.0969 15.8821 23.0969 16.0954 23.0738 16.3146L23.0392 16.3838ZM18.0393 13.3908C18.3853 13.3677 18.6967 13.3447 18.9736 13.3216C19.2619 13.287 19.5791 13.2351 19.9251 13.1659C19.8443 12.8199 19.7578 12.4623 19.6656 12.0932C19.5733 11.7126 19.4753 11.3378 19.3715 10.9687L19.2677 11.1417C19.037 11.3839 18.8121 11.655 18.5929 11.9548C18.3853 12.2547 18.2066 12.5373 18.0566 12.8026C17.9874 12.9064 17.9182 13.0102 17.849 13.114C17.7798 13.2178 17.7164 13.3216 17.6587 13.4254C17.7279 13.4139 17.7913 13.4081 17.849 13.4081C17.9182 13.4081 17.9816 13.4023 18.0393 13.3908Z",fill:"currentColor"})]})),b7=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M17.6009 13.7718C16.9702 14.7412 16.4323 15.6241 15.8572 16.4897C15.3749 17.1994 14.8741 17.4245 14.2063 17.2514C13.4457 17.0609 12.982 16.5243 13.0005 15.728C13.0005 14.4123 13.3344 13.1485 13.8353 11.9194C14.5031 10.3441 15.3564 8.85529 16.4694 7.505C16.9331 6.93372 17.267 6.88178 18.0461 7.17608C18.6583 7.41844 18.8994 7.79929 18.7881 8.43982C18.7325 8.76874 18.6583 9.11497 18.5099 9.42657C18.4542 9.58238 18.1574 9.79011 18.0647 9.75549C17.8421 9.66893 17.5824 9.47851 17.5082 9.28808C17.434 9.06303 17.5453 8.78605 17.5824 8.54369C16.4879 9.34002 14.8555 13.0274 14.7813 15.1221C15.2636 14.3603 15.7645 13.6333 16.2097 12.8542C16.5807 12.231 16.896 11.5732 17.2485 10.9154C17.2856 10.8461 17.3227 10.7249 17.3598 10.7249C17.7679 10.7596 18.2131 10.7422 18.6026 10.8634C18.8067 10.9327 19.0293 11.2097 19.0664 11.4174C19.3075 13.1139 19.493 14.8104 19.7156 16.507C19.7713 16.8013 19.864 17.0783 19.9568 17.3725C20.0866 17.7534 19.9197 17.9438 19.5116 17.9958C18.9551 18.0477 18.3615 17.6149 18.2687 17.1129C18.0461 16.0396 17.8421 14.9489 17.6009 13.7718Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M8.51335 8.78701C8.43655 8.76919 8.37894 8.76919 8.32134 8.76919C7.53408 10.9247 6.78522 13.098 6.30519 15.4139C7.15005 15.2001 7.8605 15.0042 8.60936 14.8616C9.05099 14.7904 9.1278 14.6122 9.07019 14.2381C8.95498 13.4721 8.89738 12.7061 8.82057 11.9579C8.70537 10.8891 8.60936 9.83804 8.51335 8.78701ZM9.26221 15.877C8.26373 16.1977 7.32286 16.4827 6.40119 16.8212C6.20918 16.8925 6.05557 17.1419 5.99796 17.32C5.90196 17.6585 5.90196 18.0147 5.86355 18.371C5.82515 18.8342 5.55633 19.0123 5.07629 18.9055C4.23143 18.7273 3.98181 18.4245 4.00101 17.6407C4.07782 15.7167 4.53865 13.864 5.1339 12.0292C5.88275 9.69553 6.74682 7.3975 7.55328 5.08166C7.74529 4.52942 7.95651 3.995 8.12932 3.42494C8.26373 2.96178 8.53255 2.92615 8.97418 3.08647C9.72304 3.35369 10.0495 3.72778 10.0879 4.54724C10.2223 7.6469 10.4911 10.7466 10.7407 13.8284C10.7983 14.6122 11.0863 15.3426 11.1439 16.1443C11.24 17.5694 11.6624 18.9589 11.9696 20.3484C12.0848 20.8828 11.8736 21.0788 11.3168 20.9719C10.5871 20.8472 10.2991 20.5087 10.1455 19.814C9.87665 18.5314 9.56943 17.2487 9.26221 15.877Z",fill:"currentColor"})]})),b9=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 5.75C4.5 5.05964 5.05964 4.5 5.75 4.5H18.25C18.9404 4.5 19.5 5.05964 19.5 5.75V8.09375C19.5 8.78411 18.9404 9.34375 18.25 9.34375C17.5596 9.34375 17 8.78411 17 8.09375V7H13.25V17H14.3438C15.0341 17 15.5938 17.5596 15.5938 18.25C15.5938 18.9404 15.0341 19.5 14.3438 19.5H9.65625C8.96589 19.5 8.40625 18.9404 8.40625 18.25C8.40625 17.5596 8.96589 17 9.65625 17H10.75V7H7V8.09375C7 8.78411 6.44036 9.34375 5.75 9.34375C5.05964 9.34375 4.5 8.78411 4.5 8.09375V5.75Z",fill:"currentColor"})})),b4=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M8.19299 15.5L9.19299 9H15.193L14.193 14.5L8.19299 15.5Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80342 2.00608C10.3523 2.06707 10.7479 2.56149 10.6869 3.1104L10.1436 7.99997H14.1313L14.6991 2.88953C14.7601 2.34063 15.2545 1.94509 15.8034 2.00608C16.3523 2.06707 16.7479 2.56149 16.6869 3.1104L16.1436 7.99997H20.693C21.2453 7.99997 21.693 8.44768 21.693 8.99997C21.693 9.55225 21.2453 9.99997 20.693 9.99997H15.9214L15.4769 14H19.693C20.2453 14 20.693 14.4477 20.693 15C20.693 15.5523 20.2453 16 19.693 16H15.2547L14.6869 21.1104C14.6259 21.6593 14.1315 22.0548 13.5826 21.9938C13.0337 21.9329 12.6381 21.4384 12.6991 20.8895L13.2424 16H9.2547L8.68688 21.1104C8.62589 21.6593 8.13147 22.0548 7.58256 21.9938C7.03365 21.9329 6.63812 21.4384 6.69911 20.8895L7.24239 16H1.69299C1.14071 16 0.692993 15.5523 0.692993 15C0.692993 14.4477 1.14071 14 1.69299 14H7.46462L7.90906 9.99997H2.69299C2.14071 9.99997 1.69299 9.55225 1.69299 8.99997C1.69299 8.44768 2.14071 7.99997 2.69299 7.99997H8.13128L8.69911 2.88953C8.7601 2.34063 9.25452 1.94509 9.80342 2.00608ZM9.92137 9.99997L9.47692 14H13.4646L13.9091 9.99997H9.92137Z",fill:"currentColor"})]})),b6=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsxs)("g",{opacity:.12,children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.69298 4C8.34814 4 9.69299 5.34482 9.69299 6.99998C9.69299 8.65515 8.34814 10 6.69298 10C5.03781 10 3.69299 8.65515 3.69299 6.99998C3.69299 5.34482 5.03781 4 6.69298 4Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.693 14C18.3482 14 19.693 15.3448 19.693 17C19.693 18.6552 18.3482 20 16.693 20C15.0379 20 13.6931 18.6552 13.6931 17C13.6827 15.3448 15.0275 14 16.693 14Z",fill:"currentColor"})]}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.69304 5C5.59016 5 4.69305 5.8971 4.69305 6.99998C4.69305 8.10288 5.59017 9 6.69304 9C7.79592 9 8.69305 8.10287 8.69305 6.99998C8.69305 5.89712 7.79593 5 6.69304 5ZM2.69305 6.99998C2.69305 4.79253 4.48559 3 6.69304 3C8.90048 3 10.6931 4.79252 10.6931 6.99998C10.6931 9.20744 8.90049 11 6.69304 11C4.48557 11 2.69305 9.20742 2.69305 6.99998ZM17.9859 4.29289C18.3765 3.90237 19.0096 3.90237 19.4002 4.29289C19.7907 4.68342 19.7907 5.31658 19.4002 5.70711L5.40016 19.7071C5.00964 20.0976 4.37647 20.0976 3.98595 19.7071C3.59542 19.3166 3.59542 18.6834 3.98595 18.2929L17.9859 4.29289ZM16.6931 15C15.5764 15 14.6863 15.8992 14.6931 16.9938L14.6931 17C14.6931 18.1029 15.5902 19 16.6931 19C17.796 19 18.6931 18.1029 18.6931 17C18.6931 15.8971 17.796 15 16.6931 15ZM12.6931 17.0031C12.681 14.7888 14.4798 13 16.6931 13C18.9005 13 20.6931 14.7926 20.6931 17C20.6931 19.2074 18.9005 21 16.6931 21C14.4867 21 12.6948 19.2092 12.6931 17.0031Z",fill:"currentColor"})]})),b8=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 25 24",fill:"none"},e,{children:[(0,g.jsx)("rect",{opacity:.12,x:2.69299,y:2,width:20,height:20,rx:10,fill:"currentColor"}),(0,g.jsx)("path",{d:"M13.693 8C13.693 7.44772 13.2453 7 12.693 7C12.1407 7 11.693 7.44772 11.693 8V12C11.693 12.3344 11.8601 12.6466 12.1383 12.8321L15.1383 14.8321C15.5978 15.1384 16.2187 15.0142 16.525 14.5547C16.8314 14.0952 16.7072 13.4743 16.2477 13.1679L13.693 11.4648V8Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.693 1C6.61786 1 1.69299 5.92487 1.69299 12C1.69299 18.0751 6.61786 23 12.693 23C18.7681 23 23.693 18.0751 23.693 12C23.693 5.92487 18.7681 1 12.693 1ZM3.69299 12C3.69299 7.02944 7.72243 3 12.693 3C17.6636 3 21.693 7.02944 21.693 12C21.693 16.9706 17.6636 21 12.693 21C7.72243 21 3.69299 16.9706 3.69299 12Z",fill:"currentColor"})]})),Ce=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 25 24",fill:"none"},e,{children:[(0,g.jsx)("rect",{opacity:.12,x:2.69296,y:2,width:20,height:20,rx:6,fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M6.69296 8C6.69296 7.44772 7.14068 7 7.69296 7H17.693C18.2452 7 18.693 7.44772 18.693 8C18.693 8.55229 18.2452 9 17.693 9H7.69296C7.14068 9 6.69296 8.55229 6.69296 8Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M15.693 16C15.1407 16 14.693 16.4477 14.693 17C14.693 17.5523 15.1407 18 15.693 18H17.693C18.2452 18 18.693 17.5523 18.693 17C18.693 16.4477 18.2452 16 17.693 16H15.693Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69296 0C9.24525 0 9.69296 0.447715 9.69296 1V1.01729C10.4373 0.999992 11.2826 0.999996 12.2485 1H13.1374C14.1033 0.999996 14.9486 0.999992 15.693 1.01729V1C15.693 0.447715 16.1407 0 16.693 0C17.2452 0 17.693 0.447715 17.693 1V1.14441C18.5062 1.24729 19.2153 1.42893 19.8709 1.76295C21.188 2.43407 22.2589 3.50493 22.93 4.82207C23.3408 5.62827 23.5211 6.51543 23.6079 7.57778C23.693 8.61909 23.693 9.91303 23.693 11.5556V12.4444C23.693 14.087 23.693 15.3809 23.6079 16.4222C23.5211 17.4846 23.3408 18.3717 22.93 19.1779C22.2589 20.4951 21.188 21.5659 19.8709 22.237C19.0647 22.6478 18.1775 22.8281 17.1152 22.9149C16.0739 23 14.7799 23 13.1374 23H12.2485C10.606 23 9.31205 23 8.27074 22.9149C7.20839 22.8281 6.32123 22.6478 5.51503 22.237C4.19789 21.5659 3.12703 20.4951 2.45592 19.1779C2.04514 18.3717 1.86483 17.4846 1.77803 16.4222C1.69295 15.3809 1.69296 14.087 1.69296 12.4444V11.5556C1.69296 9.91305 1.69295 8.61909 1.77803 7.57778C1.86483 6.51543 2.04514 5.62827 2.45592 4.82207C3.12703 3.50493 4.19789 2.43407 5.51503 1.76295C6.17059 1.42893 6.87968 1.24729 7.69296 1.14441V1C7.69296 0.447715 8.14068 0 8.69296 0ZM15.693 3.01778V4C15.693 4.55229 16.1407 5 16.693 5C17.2452 5 17.693 4.55228 17.693 4V3.16428C18.2286 3.24911 18.6252 3.37287 18.9629 3.54497C19.9037 4.02433 20.6686 4.78924 21.148 5.73005C21.3912 6.20731 21.5378 6.80197 21.6145 7.74064C21.6922 8.69099 21.693 9.90334 21.693 11.6V12.4C21.693 14.0967 21.6922 15.309 21.6145 16.2594C21.5378 17.198 21.3912 17.7927 21.148 18.27C20.6686 19.2108 19.9037 19.9757 18.9629 20.455C18.4856 20.6982 17.891 20.8449 16.9523 20.9216C16.002 20.9992 14.7896 21 13.093 21H12.293C10.5963 21 9.38395 20.9992 8.43361 20.9216C7.49494 20.8449 6.90028 20.6982 6.42301 20.455C5.4822 19.9757 4.7173 19.2108 4.23793 18.27C3.99475 17.7927 3.84808 17.198 3.77139 16.2594C3.69374 15.309 3.69296 14.0967 3.69296 12.4V11.6C3.69296 9.90334 3.69374 8.69099 3.77139 7.74064C3.84808 6.80197 3.99475 6.20731 4.23793 5.73005C4.7173 4.78924 5.4822 4.02433 6.42301 3.54497C6.76076 3.37287 7.15731 3.24911 7.69296 3.16428V4C7.69296 4.55229 8.14068 5 8.69296 5C9.24525 5 9.69296 4.55228 9.69296 4V3.01778C10.4148 3.00029 11.265 3 12.293 3H13.093C14.1209 3 14.9711 3.00029 15.693 3.01778Z",fill:"currentColor"})]})),Ct=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.693 2C12.693 1.44772 12.2453 1 11.693 1C11.1407 1 10.693 1.44772 10.693 2V3H9.17983C6.70182 3 4.69299 5.00882 4.69299 7.48683C4.69299 9.4181 5.9288 11.1327 7.76097 11.7434L10.693 12.7208L10.693 19H9.69299C8.03614 19 6.69299 17.6569 6.69299 16C6.69299 15.4477 6.24528 15 5.69299 15C5.14071 15 4.69299 15.4477 4.69299 16C4.69299 18.7614 6.93157 21 9.69299 21H10.693V22C10.693 22.5523 11.1407 23 11.693 23C12.2453 23 12.693 22.5523 12.693 22V21H14.2062C16.6842 21 18.693 18.9912 18.693 16.5132C18.693 14.5819 17.4572 12.8673 15.625 12.2566L12.693 11.2792V5H13.693C15.3498 5 16.693 6.34315 16.693 8C16.693 8.55228 17.1407 9 17.693 9C18.2453 9 18.693 8.55228 18.693 8C18.693 5.23858 16.4544 3 13.693 3H12.693V2ZM10.693 5H9.17983C7.80639 5 6.69299 6.11339 6.69299 7.48683C6.69299 8.55724 7.37794 9.50756 8.39342 9.84605L10.693 10.6126L10.693 5ZM12.693 13.3874V19H14.2062C15.5796 19 16.693 17.8866 16.693 16.5132C16.693 15.4428 16.008 14.4924 14.9926 14.154L12.693 13.3874Z",fill:"currentColor"})})),Cn=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 27 24",fill:"none"},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.69302 16.2C5.69302 15.6477 6.14074 15.2 6.69302 15.2H16.223C16.7753 15.2 17.223 15.6477 17.223 16.2C17.223 16.7522 16.7753 17.2 16.223 17.2H6.69302C6.14074 17.2 5.69302 16.7522 5.69302 16.2Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.69302 12.78C5.69302 12.2277 6.14074 11.78 6.69302 11.78H17.643C18.1953 11.78 18.643 12.2277 18.643 12.78C18.643 13.3323 18.1953 13.78 17.643 13.78H6.69302C6.14074 13.78 5.69302 13.3323 5.69302 12.78Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.223 8C12.6353 8 9.72302 10.9123 9.72302 14.5C9.72302 18.0877 12.6353 21 16.223 21C18.3894 21 20.3032 19.9445 21.4828 18.3139C21.8065 17.8664 22.4317 17.7661 22.8792 18.0898C23.3266 18.4135 23.427 19.0386 23.1033 19.4861C21.5628 21.6155 19.0567 23 16.223 23C11.5307 23 7.72302 19.1923 7.72302 14.5C7.72302 9.80772 11.5307 6 16.223 6C19.0566 6 21.5628 7.38445 23.1033 9.51386C23.427 9.96133 23.3266 10.5865 22.8792 10.9102C22.4317 11.2339 21.8065 11.1336 21.4828 10.6861C20.3032 9.0555 18.3894 8 16.223 8Z",fill:"currentColor"})]})),Cr=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.59308 8.94C7.59308 6.21772 9.8108 4 12.5331 4H13.0631C15.7854 4 18.0031 6.21772 18.0031 8.94V9.25C18.0031 9.80228 17.5554 10.25 17.0031 10.25C16.4508 10.25 16.0031 9.80228 16.0031 9.25V8.94C16.0031 7.32229 14.6808 6 13.0631 6H12.5331C10.9154 6 9.59308 7.32229 9.59308 8.94V12.34H13.1931C13.7453 12.34 14.1931 12.7877 14.1931 13.34C14.1931 13.8923 13.7453 14.34 13.1931 14.34H9.59308V17.57C9.59308 18.0762 9.48301 18.5571 9.28553 18.99H17.0031C17.5553 18.99 18.0031 19.4377 18.0031 19.99C18.0031 20.5423 17.5553 20.99 17.0031 20.99H6.42667C6.33967 20.9966 6.25177 21 6.16309 21H5.70306C5.42438 21 5.17231 20.886 4.99097 20.7021C4.80706 20.5207 4.69305 20.2687 4.69305 19.99C4.69305 19.4377 5.14077 18.99 5.69305 18.99H6.33253C7.04085 18.9058 7.59308 18.3004 7.59308 17.57V14.34H5.69305C5.14077 14.34 4.69305 13.8923 4.69305 13.34C4.69305 12.7877 5.14077 12.34 5.69305 12.34H7.59308V8.94Z",fill:"currentColor"})})),Ci=e=>{var{variant:t}=e,n=s$(e,["variant"]);return(0,g.jsxs)(bA,Object.assign({variant:t,viewBox:"0 0 24 24"},n,{children:[(0,g.jsx)("path",{fill:t?"none":"#fff",d:"M6 10h11v10H6z"}),(0,g.jsx)("path",{fill:t?"currentColor":"#F4B400",fillRule:"evenodd",d:"M4.614 0h9.144L17 3.212l3.212 3.243v15.598c0 .887-.726 1.614-1.613 1.614H4.614A1.618 1.618 0 0 1 3 22.053V1.613C3 .727 3.726 0 4.614 0ZM8.11 10.758h6.992a.81.81 0 0 1 .807.806v6.993a.81.81 0 0 1-.807.807H8.11a.81.81 0 0 1-.807-.807v-6.993a.81.81 0 0 1 .807-.806Zm.269 6.185h6.454v-3.765H8.38v3.765Z",clipRule:"evenodd"}),(0,g.jsx)("path",{fill:"#fff",fillOpacity:.5,d:"M13.758 0v4.84c0 .892.722 1.615 1.613 1.615h4.841L13.758 0Z"})]}))},Co=e=>{var{variant:t}=e,n=s$(e,["variant"]);return(0,g.jsx)(bA,Object.assign({variant:t},n,{children:(0,g.jsx)("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63a5.876 5.876 0 00-2.126 1.384A5.855 5.855 0 00.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913a5.885 5.885 0 001.384 2.126A5.868 5.868 0 004.14 23.37c.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558a5.898 5.898 0 002.126-1.384 5.86 5.86 0 001.384-2.126c.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913a5.89 5.89 0 00-1.384-2.126A5.847 5.847 0 0019.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85 0 3.204-.015 3.585-.074 4.85-.061 1.17-.256 1.805-.421 2.227a3.81 3.81 0 01-.899 1.382 3.744 3.744 0 01-1.38.896c-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421a3.716 3.716 0 01-1.379-.899 3.644 3.644 0 01-.9-1.38c-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678a6.162 6.162 0 100 12.324 6.162 6.162 0 100-12.324zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405a1.441 1.441 0 01-2.88 0 1.44 1.44 0 012.88 0z",fill:t?"currentColor":"#DA70A9"})}))},Cl=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:"0.12",d:"M2 10.8c0-1.68 0-2.52.327-3.162a3 3 0 011.311-1.311C4.28 6 5.12 6 6.8 6h10.4c1.68 0 2.52 0 3.162.327a3 3 0 011.311 1.311C22 8.28 22 9.12 22 10.8v2.4c0 1.68 0 2.52-.327 3.162a3 3 0 01-1.311 1.311C19.72 18 18.88 18 17.2 18H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 01-1.311-1.311C2 15.72 2 14.88 2 13.2v-2.4z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.768 4.89h10.464c.813 0 1.469 0 2 .044.546.045 1.026.14 1.47.366a3.75 3.75 0 011.64 1.638c.226.445.32.925.365 1.471.043.531.043 1.187.043 2v3.182c0 .813 0 1.469-.043 2-.045.546-.14 1.026-.366 1.47a3.75 3.75 0 01-1.639 1.64c-.444.226-.924.32-1.47.365-.531.043-1.187.043-2 .043H6.768c-.813 0-1.469 0-2-.043-.546-.045-1.026-.14-1.47-.366a3.75 3.75 0 01-1.64-1.639c-.226-.444-.32-.924-.365-1.47-.043-.531-.043-1.187-.043-2V10.41c0-.813 0-1.469.043-2 .045-.546.14-1.026.366-1.47a3.75 3.75 0 011.639-1.64c.444-.226.924-.32 1.47-.365.531-.043 1.187-.043 2-.043zM4.89 6.43c-.454.036-.715.105-.912.206a2.25 2.25 0 00-.984.983c-.1.198-.17.459-.207.913-.037.462-.038 1.056-.038 1.909v3.118c0 .853 0 1.447.038 1.91.037.453.107.714.207.912.216.423.56.767.984.983.197.1.458.17.912.207.462.037 1.057.038 1.909.038h10.4c.852 0 1.447 0 1.91-.038.453-.037.714-.107.912-.207a2.25 2.25 0 00.983-.983c.1-.198.17-.459.207-.913.037-.462.038-1.056.038-1.909v-3.118c0-.853 0-1.447-.038-1.91-.038-.453-.107-.714-.207-.912a2.25 2.25 0 00-.983-.983c-.198-.1-.459-.17-.913-.207-.462-.038-1.057-.038-1.909-.038H6.8c-.852 0-1.447 0-1.91.038z",fill:"currentColor"})]})),Ca=e=>{var{variant:t}=e,n=s$(e,["variant"]);return(0,g.jsx)(bA,Object.assign({variant:t},n,{children:(0,g.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286h-.001zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",fill:t?"currentColor":"#6596DA"})}))},Cs=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:"0.12",d:"M5 6.8c0-1.68 0-2.52.327-3.162a3 3 0 011.311-1.311C7.28 2 8.12 2 9.8 2h4.4c1.68 0 2.52 0 3.162.327a3 3 0 011.311 1.311C19 4.28 19 5.12 19 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 01-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 01-1.311-1.311C5 19.72 5 18.88 5 17.2V6.8z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.256 1.25h3.488c.813 0 1.468 0 2 .043.546.045 1.026.14 1.47.366a3.75 3.75 0 011.639 1.639c.226.444.32.924.365 1.47.044.531.044 1.187.044 2v10.464c0 .813 0 1.469-.044 2-.044.546-.139 1.026-.365 1.47a3.75 3.75 0 01-1.639 1.64c-.444.226-.924.32-1.47.365-.532.043-1.187.043-2 .043h-3.488c-.813 0-1.468 0-2-.043-.546-.045-1.026-.14-1.47-.366a3.75 3.75 0 01-1.639-1.639c-.226-.444-.32-.924-.365-1.47-.044-.531-.044-1.187-.044-2V6.768c0-.813 0-1.469.044-2 .044-.546.139-1.026.365-1.47a3.75 3.75 0 011.639-1.64c.444-.226.924-.32 1.47-.365.532-.043 1.187-.043 2-.043zM8.38 2.788c-.454.037-.715.107-.912.207a2.25 2.25 0 00-.983.984c-.101.197-.17.458-.207.912-.038.462-.039 1.057-.039 1.909v10.4c0 .852 0 1.447.039 1.91.037.453.106.714.207.912.215.423.56.767.983.983.197.1.458.17.912.207.463.037 1.057.038 1.91.038h3.423c.852 0 1.446 0 1.909-.038.454-.038.715-.107.912-.207.423-.216.768-.56.983-.983.101-.198.17-.459.207-.913.038-.462.039-1.057.039-1.909V6.8c0-.852-.001-1.447-.039-1.91-.037-.453-.106-.714-.207-.911a2.25 2.25 0 00-.983-.984c-.197-.1-.458-.17-.912-.207-.463-.037-1.057-.038-1.91-.038h-3.423c-.852 0-1.446 0-1.909.038z",fill:"currentColor"})]})),Cu=e=>{var{variant:t}=e,n=s$(e,["variant"]);return(0,g.jsxs)(bA,Object.assign({variant:t},n,{children:[(0,g.jsx)("path",{d:"M15.5634 8.87665C17.0957 9.97137 18.9727 10.6155 21 10.6155V6.71636C20.6163 6.71644 20.2336 6.67645 19.8583 6.59697V9.66613C17.8311 9.66613 15.9543 9.02202 14.4217 7.92738V15.8844C14.4217 19.8648 11.1933 23.0914 7.21098 23.0914C5.7251 23.0914 4.34403 22.6425 3.19678 21.8724C4.50618 23.2106 6.33224 24.0407 8.35245 24.0407C12.335 24.0407 15.5636 20.8141 15.5636 16.8335V8.87665H15.5634ZM16.9719 4.94291C16.1888 4.08787 15.6747 2.98288 15.5634 1.76128V1.25977H14.4815C14.7538 2.81243 15.6827 4.13893 16.9719 4.94291ZM5.71557 18.8179C5.27807 18.2446 5.04165 17.5432 5.04271 16.8221C5.04271 15.0015 6.51939 13.5254 8.34121 13.5254C8.68074 13.5254 9.01822 13.5773 9.34179 13.6799V9.69366C8.96366 9.64186 8.58203 9.61988 8.20056 9.62794V12.7307C7.87676 12.628 7.5391 12.5759 7.1995 12.5762C5.37767 12.5762 3.90107 14.0522 3.90107 15.873C3.90107 17.1604 4.63917 18.275 5.71557 18.8179Z",fill:t?"currentColor":"#FF004F"}),(0,g.jsx)("path",{d:"M14.4217 7.9273C15.9543 9.02194 17.8311 9.66605 19.8583 9.66605V6.59689C18.7267 6.35599 17.725 5.76497 16.9718 4.94291C15.6826 4.13885 14.7538 2.81235 14.4815 1.25977H11.6395V16.8333C11.6331 18.6489 10.1589 20.1189 8.34102 20.1189C7.26975 20.1189 6.31804 19.6086 5.7153 18.8179C4.63898 18.275 3.90089 17.1603 3.90089 15.873C3.90089 14.0524 5.37748 12.5763 7.19931 12.5763C7.54836 12.5763 7.88479 12.6306 8.20037 12.7307V9.62802C4.28805 9.70881 1.1416 12.9039 1.1416 16.8334C1.1416 18.795 1.92514 20.5732 3.19683 21.8725C4.34409 22.6425 5.72515 23.0915 7.21104 23.0915C11.1934 23.0915 14.4218 19.8648 14.4218 15.8844V7.9273H14.4217Z",fill:t?"currentColor":"#000000"}),(0,g.jsx)("path",{d:"M19.8583 6.59686V5.76698C18.8379 5.76853 17.8376 5.48291 16.9719 4.9428C17.7382 5.78139 18.7474 6.35962 19.8583 6.59686ZM14.4815 1.25974C14.4555 1.11135 14.4356 0.961989 14.4217 0.812057V0.310547H10.4978V15.8842C10.4915 17.6996 9.01742 19.1696 7.19934 19.1696C6.66558 19.1696 6.16162 19.043 5.71533 18.818C6.31807 19.6085 7.26978 20.1188 8.34105 20.1188C10.1588 20.1188 11.6332 18.6489 11.6396 16.8334V1.25974H14.4815ZM8.20057 9.62799V8.74452C7.87269 8.69973 7.54212 8.67725 7.21115 8.67742C3.22846 8.67733 0 11.9041 0 15.8842C0 18.3796 1.26884 20.5787 3.19695 21.8723C1.92525 20.5731 1.14171 18.7948 1.14171 16.8333C1.14171 12.9039 4.28809 9.70878 8.20057 9.62799Z",fill:t?"currentColor":"#00F2EA"})]}))},Cc=e=>{var{variant:t}=e,n=s$(e,["variant"]);return(0,g.jsx)(bA,Object.assign({variant:t},n,{children:(0,g.jsx)("path",{fill:t?"currentColor":"#000",d:"M.094.143C.084.16.933 1.31 1.976 2.696l4.926 6.55 3.029 4.027-.194.218c-.11.12-2.337 2.512-4.947 5.315C2.18 21.614.036 23.927.03 23.953c-.01.026.446.047 1.1.042l1.117-.005.367-.402a6005 6005 0 0 0 8.202-8.82l.13-.151 1.049 1.396 3.527 4.694L18.007 24h3.8c3.16 0 3.794-.01 3.773-.068-.016-.041-.98-1.333-2.144-2.88a2215.571 2215.571 0 0 1-2.955-3.93c-.467-.614-1.835-2.443-3.05-4.053-1.216-1.615-2.212-2.959-2.212-2.98 0-.036 6.425-6.971 8.61-9.29l.624-.661h-1.148l-1.142.005-1.337 1.438c-.733.792-2.53 2.73-3.998 4.298L14.17 8.735l-3.223-4.283L7.719.164 3.92.138C1.83.122.106.128.095.143ZM9.098 4.76c1.242 1.657 3.16 4.205 4.26 5.669 1.101 1.459 3.543 4.71 5.43 7.216l3.474 4.626c.032.047-.34.063-1.698.063H18.83l-3.438-4.575C7.457 7.218 3.453 1.894 3.406 1.816c-.031-.047.325-.063 1.693-.063h1.735l2.264 3.006Z"})}))},Cd=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:"0.12",d:"M4.394 18.894c-1.188-1.188-1.782-1.782-2.005-2.467a3 3 0 010-1.854c.223-.685.817-1.279 2.005-2.467l7.712-7.712c1.188-1.188 1.782-1.782 2.467-2.004a3 3 0 011.854 0c.685.222 1.279.816 2.467 2.004l.712.712c1.188 1.188 1.782 1.782 2.004 2.467a3 3 0 010 1.854c-.222.685-.816 1.28-2.004 2.467l-7.712 7.712c-1.188 1.188-1.782 1.782-2.467 2.005a3.001 3.001 0 01-1.854 0c-.685-.223-1.28-.817-2.467-2.005l-.712-.712z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.341 1.676a3.75 3.75 0 012.318 0c.474.154.88.427 1.298.782.406.345.87.808 1.445 1.383l.757.757c.575.575 1.038 1.039 1.383 1.445.355.418.628.824.782 1.298a3.75 3.75 0 010 2.318c-.154.474-.427.88-.782 1.298-.345.406-.808.87-1.383 1.445l-7.757 7.757c-.575.575-1.039 1.038-1.445 1.383-.418.355-.824.628-1.298.782a3.75 3.75 0 01-2.318 0c-.474-.154-.88-.427-1.298-.782-.406-.345-.87-.808-1.445-1.383l-.757-.757c-.575-.575-1.038-1.039-1.383-1.445-.355-.418-.628-.824-.782-1.298a3.75 3.75 0 010-2.318c.154-.474.427-.88.782-1.298.345-.406.808-.87 1.383-1.445l7.757-7.757c.575-.575 1.039-1.038 1.445-1.383.418-.355.824-.628 1.298-.782zm1.854 1.427a2.25 2.25 0 00-1.39 0c-.211.068-.444.204-.792.499-.353.3-.774.72-1.377 1.322l-7.712 7.712c-.602.603-1.022 1.024-1.323 1.378-.294.347-.43.58-.498.79a2.25 2.25 0 000 1.391c.068.211.204.444.498.792.3.353.72.774 1.323 1.377l.712.712c.603.602 1.024 1.022 1.377 1.322.348.295.58.43.792.5a2.25 2.25 0 001.39 0c.211-.07.444-.205.792-.5.06-.05.122-.105.187-.164L8.47 18.53a.75.75 0 011.06-1.06l1.72 1.72 1.94-1.94-3.22-3.22a.75.75 0 011.06-1.06l3.22 3.22 1.94-1.94-1.72-1.72a.75.75 0 011.06-1.06l1.72 1.72 1.94-1.94-3.22-3.22a.75.75 0 011.06-1.06l3.204 3.204c.059-.065.113-.127.164-.187.295-.348.43-.58.5-.792a2.25 2.25 0 000-1.39c-.07-.211-.205-.444-.5-.792-.3-.353-.72-.774-1.322-1.377l-.712-.712c-.603-.602-1.024-1.022-1.378-1.322-.347-.295-.58-.43-.79-.5z",fill:"currentColor"})]})),Cp=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z",fill:"currentColor"})})),Ch=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"})})),Cg=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M3.75 22C3.33579 22 3 21.6642 3 21.25L3 3.25002C3 2.83581 3.33579 2.50002 3.75 2.50002C4.16421 2.50002 4.5 2.83581 4.5 3.25002L4.5 21.25C4.5 21.6642 4.16421 22 3.75 22Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M9.41667 22C9.00245 22 8.66667 21.6642 8.66667 21.25L8.66667 8.25002C8.66667 7.83581 9.00245 7.50002 9.41667 7.50002C9.83088 7.50002 10.1667 7.83581 10.1667 8.25002L10.1667 21.25C10.1667 21.6642 9.83088 22 9.41667 22Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M15.0833 10.5C15.4975 10.5 15.8333 10.8358 15.8333 11.25V21.25C15.8333 21.6642 15.4975 22 15.0833 22C14.6691 22 14.3333 21.6642 14.3333 21.25V11.25C14.3333 10.8358 14.6691 10.5 15.0833 10.5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M20.75 12.5C20.3358 12.5 20 12.8358 20 13.25V21.25C20 21.6642 20.3358 22 20.75 22C21.1642 22 21.5 21.6642 21.5 21.25V13.25C21.5 12.8358 21.1642 12.5 20.75 12.5Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M19.1183 1.52428C18.8555 1.20407 18.3829 1.15747 18.0627 1.42022C17.7425 1.68296 17.6959 2.15554 17.9587 2.47576L19.4145 4.25002L13 4.25002C12.5858 4.25002 12.25 4.58581 12.25 5.00002C12.25 5.41423 12.5858 5.75002 13 5.75002L19.4145 5.75002L17.9587 7.52428C17.6959 7.8445 17.7425 8.31708 18.0627 8.57983C18.3829 8.84257 18.8555 8.79598 19.1183 8.47576L21.5798 5.47576C21.8067 5.19919 21.8067 4.80085 21.5798 4.52428L19.1183 1.52428Z",fill:"currentColor"})]})),Cf=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{opacity:.12,d:"M2 8.4C2 6.15979 2 5.03968 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C5.03968 2 6.15979 2 8.4 2H15.6C17.8402 2 18.9603 2 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C22 5.03968 22 6.15979 22 8.4V15.6C22 17.8402 22 18.9603 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C18.9603 22 17.8402 22 15.6 22H8.4C6.15979 22 5.03968 22 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2 18.9603 2 17.8402 2 15.6V8.4Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25H14.0336C15.4053 1.25 16.4807 1.24999 17.3451 1.32061C18.2252 1.39252 18.9523 1.54138 19.6104 1.87671C20.6924 2.42798 21.572 3.30762 22.1233 4.38955C22.4586 5.04768 22.6075 5.77479 22.6794 6.65494C22.75 7.51926 22.75 8.59466 22.75 9.96632V14.0336C22.75 15.4052 22.75 16.4807 22.6794 17.3451C22.6075 18.2252 22.4586 18.9523 22.1233 19.6104C21.572 20.6924 20.6924 21.572 19.6104 22.1233C18.9523 22.4586 18.2252 22.6075 17.3451 22.6794C16.4807 22.75 15.4053 22.75 14.0337 22.75H9.96642C8.59476 22.75 7.51926 22.75 6.65494 22.6794C5.77479 22.6075 5.04768 22.4586 4.38955 22.1233C3.30762 21.572 2.42798 20.6924 1.87671 19.6104C1.54138 18.9523 1.39252 18.2252 1.32061 17.3451C1.24999 16.4807 1.25 15.4053 1.25 14.0336V9.96644C1.25 8.59473 1.24999 7.51928 1.32061 6.65494C1.39252 5.77479 1.54138 5.04768 1.87671 4.38955C2.42798 3.30762 3.30762 2.42798 4.38955 1.87671C5.04768 1.54138 5.77479 1.39252 6.65494 1.32061C7.51928 1.24999 8.59473 1.25 9.96644 1.25ZM2.75 12.75V14C2.75 15.4125 2.75058 16.4268 2.81563 17.2229C2.87996 18.0103 3.00359 18.518 3.21322 18.9295C3.62068 19.7291 4.27085 20.3793 5.07054 20.7868C5.48197 20.9964 5.9897 21.12 6.77708 21.1844C7.57322 21.2494 8.58749 21.25 10 21.25H11.25V12.75H2.75ZM11.25 11.25H2.75V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H11.25V11.25ZM12.75 12.75V21.25H14C15.4125 21.25 16.4268 21.2494 17.2229 21.1844C18.0103 21.12 18.518 20.9964 18.9295 20.7868C19.7291 20.3793 20.3793 19.7291 20.7868 18.9295C20.9964 18.518 21.12 18.0103 21.1844 17.2229C21.2494 16.4268 21.25 15.4125 21.25 14V12.75H12.75ZM21.25 11.25H12.75V2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V11.25Z",fill:"currentColor"})]})})),Cm=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59473 1.25 7.51928 1.24999 6.65494 1.32061C5.7748 1.39252 5.04769 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04769 1.39252 5.7748 1.32061 6.65494C1.24999 7.51928 1.25 8.59471 1.25 9.96642V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04769 22.4586 5.7748 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59474 22.75 7.51927 22.6794 6.65494C22.6075 5.7748 22.4586 5.04769 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322ZM17.5302 9.53033C17.8231 9.23744 17.8231 8.76256 17.5302 8.46967C17.2373 8.17678 16.7624 8.17678 16.4695 8.46967L12.9999 11.9393L11.5302 10.4697C11.2373 10.1768 10.7624 10.1768 10.4695 10.4697L6.46955 14.4697C6.17666 14.7626 6.17666 15.2374 6.46955 15.5303C6.76244 15.8232 7.23732 15.8232 7.53021 15.5303L10.9999 12.0607L12.4695 13.5303C12.6102 13.671 12.801 13.75 12.9999 13.75C13.1988 13.75 13.3896 13.671 13.5302 13.5303L17.5302 9.53033Z",fill:"currentColor"})]})),Cy=e=>{var{gradientVariant:t}=e,n=s$(e,["gradientVariant"]);let r=gq(t);return(0,g.jsxs)(bA,Object.assign({},n,{children:[(0,g.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",fill:r.fill("a"),opacity:"0.12",rx:"5"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.25h-.034c-1.371 0-2.447 0-3.311.07-.88.073-1.607.221-2.265.557A5.75 5.75 0 001.877 4.39c-.336.658-.484 1.385-.556 2.265-.071.864-.071 1.94-.071 3.311v4.068c0 1.371 0 2.447.07 3.311.073.88.221 1.607.557 2.265a5.75 5.75 0 002.513 2.513c.658.336 1.385.485 2.265.556.864.071 1.94.071 3.311.071h4.068c1.371 0 2.447 0 3.311-.07.88-.072 1.607-.221 2.265-.557a5.75 5.75 0 002.513-2.513c.336-.658.485-1.385.556-2.265.071-.864.071-1.94.071-3.311V9.966c0-1.371 0-2.447-.07-3.311-.072-.88-.221-1.607-.557-2.265a5.75 5.75 0 00-2.513-2.513c-.658-.336-1.385-.484-2.265-.556-.864-.071-1.94-.071-3.311-.071H10zM5.07 3.213c.412-.21.92-.333 1.707-.397.796-.065 1.81-.066 3.223-.066h4c1.412 0 2.427 0 3.223.066.787.064 1.295.188 1.707.397a4.25 4.25 0 011.857 1.858c.21.411.333.919.397 1.706.065.796.066 1.81.066 3.223v4c0 1.412 0 2.427-.066 3.223-.064.787-.188 1.295-.397 1.707a4.251 4.251 0 01-1.857 1.857c-.412.21-.92.333-1.707.397-.796.065-1.81.066-3.223.066h-4c-1.413 0-2.427 0-3.223-.066-.787-.064-1.295-.188-1.706-.397a4.25 4.25 0 01-1.858-1.857c-.21-.412-.333-.92-.397-1.707-.065-.796-.066-1.81-.066-3.223v-4c0-1.413 0-2.427.066-3.223.064-.787.188-1.295.397-1.706a4.25 4.25 0 011.858-1.858zm13.069 5.68a.75.75 0 00-1.278-.786l-2.345 3.81a.93.93 0 01-1.64-.102c-.77-1.695-3.083-1.93-4.179-.424l-2.304 3.168a.75.75 0 101.213.882l2.304-3.168a.93.93 0 011.6.163c.806 1.772 3.264 1.925 4.284.268l2.345-3.81z",fill:r.fill("a")}),(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:r.id("green","a"),x1:"1.25",y1:"2.61167",x2:"22.75",y2:"21.675",gradientUnits:"userSpaceOnUse",children:[(0,g.jsx)("stop",{stopColor:"#2461FF"}),(0,g.jsx)("stop",{offset:"0.83",stopColor:"#00FF66"})]})})]}))},Cx=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.11 12.277c-.11-.46-.11-.95-.11-1.928V9.4c0-2.24 0-3.36.436-4.216a4 4 0 0 1 1.748-1.748C6.04 3 7.16 3 9.4 3h.949c.978 0 1.468 0 1.928.11.408.099.798.26 1.156.48.404.247.75.593 1.441 1.285l3.6 3.6c1.585 1.584 2.377 2.376 2.673 3.289a4 4 0 0 1 0 2.472c-.296.913-1.088 1.705-2.672 3.29l-.95.948c-1.584 1.585-2.376 2.377-3.289 2.673a4 4 0 0 1-2.472 0c-.913-.296-1.705-1.088-3.29-2.672l-3.6-3.6c-.691-.692-1.037-1.038-1.285-1.442a3.998 3.998 0 0 1-.478-1.156ZM10 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",clipRule:"evenodd",opacity:.12}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 7.25a2.75 2.75 0 1 0 0 5.5 2.75 2.75 0 0 0 0-5.5ZM8.75 10a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z",clipRule:"evenodd"}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.452 2.381c-.548-.131-1.12-.131-2.01-.131H9.368c-1.092 0-1.958 0-2.655.057-.714.058-1.317.18-1.868.46a4.75 4.75 0 0 0-2.076 2.077c-.281.55-.403 1.154-.461 1.868-.057.697-.057 1.563-.057 2.655v1.075c0 .89 0 1.462.131 2.01.117.485.309.948.569 1.373.294.48.7.885 1.328 1.514l3.69 3.69c.772.771 1.384 1.383 1.917 1.836.546.464 1.059.805 1.647.996a4.75 4.75 0 0 0 2.936 0c.588-.192 1.101-.532 1.647-.996.533-.453 1.145-1.065 1.918-1.837l.995-.996c.773-.772 1.385-1.384 1.838-1.917.463-.546.803-1.059.995-1.647a4.75 4.75 0 0 0 0-2.936c-.192-.588-.532-1.101-.995-1.647-.453-.533-1.066-1.145-1.838-1.918l-3.69-3.689c-.628-.629-1.033-1.034-1.513-1.328a4.75 4.75 0 0 0-1.373-.569ZM10.349 3.75c1.014 0 1.399.005 1.753.09.332.08.649.21.94.389.31.19.585.459 1.302 1.176l3.6 3.6c.801.8 1.37 1.37 1.778 1.851.403.475.606.815.712 1.14a3.25 3.25 0 0 1 0 2.008c-.106.325-.31.665-.712 1.14-.409.481-.977 1.05-1.778 1.851l-.949.95c-.8.8-1.37 1.368-1.851 1.777-.475.403-.815.606-1.14.712a3.25 3.25 0 0 1-2.008 0c-.325-.106-.665-.31-1.14-.712-.481-.409-1.05-.977-1.851-1.778l-3.6-3.6c-.717-.717-.986-.992-1.176-1.303a3.25 3.25 0 0 1-.39-.94c-.084-.353-.089-.738-.089-1.752V9.4c0-1.133 0-1.937.052-2.566.05-.62.147-1.005.302-1.31a3.25 3.25 0 0 1 1.42-1.42c.305-.155.69-.251 1.31-.302.63-.051 1.434-.052 2.566-.052h.95Z",clipRule:"evenodd"})]})),Cb=e=>(0,g.jsx)(bA,Object.assign({},e,{viewBox:"0 0 16 16",children:(0,g.jsx)("path",{fill:"currentColor",d:"M3.333 3.08v1h9.334v-1H3.333ZM3.333 6.747h9.334v1.666H3.333V6.747ZM3.333 10.747h9.334v2.333H3.333v-2.333Z"})})),CC=e=>(0,g.jsx)(bA,Object.assign({},e,{viewBox:"0 0 16 16",children:(0,g.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",fill:"currentColor",fillOpacity:.12})})),Cv=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C22 6.56 22 8.24 22 11.6v.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C17.44 22 15.76 22 12.4 22h-.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 17.44 2 15.76 2 12.4v-.8Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.566 1.25c-1.651 0-2.937 0-3.968.084-1.047.086-1.897.262-2.662.652a6.75 6.75 0 0 0-2.95 2.95c-.39.765-.566 1.615-.652 2.662-.084 1.031-.084 2.317-.084 3.968v.868c0 1.651 0 2.937.084 3.968.086 1.047.262 1.897.652 2.662a6.75 6.75 0 0 0 2.95 2.95c.765.39 1.615.566 2.662.652 1.031.084 2.317.084 3.968.084h.868c1.651 0 2.937 0 3.968-.084 1.047-.086 1.897-.262 2.662-.652a6.75 6.75 0 0 0 2.95-2.95c.39-.765.566-1.615.652-2.662.084-1.031.084-2.317.084-3.968v-.868c0-1.651 0-2.937-.084-3.968-.086-1.047-.262-1.897-.652-2.662a6.75 6.75 0 0 0-2.95-2.95c-.765-.39-1.615-.566-2.662-.652-1.031-.084-2.317-.084-3.968-.084h-.868Zm-5.95 2.072c.519-.264 1.15-.415 2.104-.493.963-.078 2.187-.079 3.88-.079h.8c1.692 0 2.917 0 3.88.08.954.077 1.585.228 2.103.492a5.25 5.25 0 0 1 2.295 2.295c.264.518.415 1.15.493 2.103.078.963.079 2.187.079 3.88v.8c0 1.692 0 2.917-.08 3.88-.077.954-.228 1.585-.492 2.103a5.25 5.25 0 0 1-2.295 2.295c-.518.264-1.15.415-2.103.493-.963.078-2.188.079-3.88.079h-.8c-1.693 0-2.917 0-3.88-.08-.954-.077-1.585-.228-2.103-.492a5.25 5.25 0 0 1-2.295-2.295c-.264-.518-.415-1.15-.493-2.103-.078-.963-.079-2.188-.079-3.88v-.8c0-1.693 0-2.917.08-3.88.077-.954.228-1.585.492-2.103a5.25 5.25 0 0 1 2.295-2.295ZM7.75 8a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0V8ZM12 10.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75ZM17.75 9a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0V9Z",fill:"currentColor"})]})),Cj=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{d:"M10.3144 6.86888C10.0417 7.18061 9.56786 7.21219 9.25613 6.93943L7.50001 5.40283L7.50001 17.1667C7.50001 17.5809 7.16422 17.9167 6.75001 17.9167C6.3358 17.9167 6.00001 17.5809 6.00001 17.1667L6.00001 5.40283L4.24389 6.93943C3.93216 7.21219 3.45834 7.18061 3.18558 6.86888C2.91282 6.55715 2.9444 6.08333 3.25613 5.81057L6.25613 3.18557C6.5389 2.93814 6.96112 2.93814 7.24389 3.18557L10.2439 5.81057C10.5556 6.08333 10.5872 6.55715 10.3144 6.86888Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M17.0477 20.8144C16.736 20.5417 16.7044 20.0679 16.9772 19.7561L18.5138 18L6.74996 18C6.33575 18 5.99996 17.6642 5.99996 17.25C5.99996 16.8358 6.33575 16.5 6.74996 16.5L18.5138 16.5L16.9772 14.7439C16.7044 14.4322 16.736 13.9583 17.0477 13.6856C17.3595 13.4128 17.8333 13.4444 18.1061 13.7561L20.7311 16.7561C20.9785 17.0389 20.9785 17.4611 20.7311 17.7439L18.1061 20.7439C17.8333 21.0556 17.3595 21.0872 17.0477 20.8144Z",fill:"currentColor"})]})),CA=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:.8,d:"M22 14.282v-7a.498.498 0 0 0-.757-.425L14.5 10.973c-.908.555-1.363.832-1.848.94-.43.096-.876.096-1.306 0-.485-.108-.94-.385-1.848-.94L2.757 6.857A.498.498 0 0 0 2 7.282v7c0 .991 0 1.487.142 1.932a3 3 0 0 0 .605 1.068c.309.351.734.606 1.583 1.116l5.2 3.12c.898.539 1.347.808 1.827.914a3 3 0 0 0 1.287 0c.479-.106.928-.375 1.826-.914l5.2-3.12c.85-.51 1.274-.765 1.583-1.116a3 3 0 0 0 .605-1.068c.142-.445.142-.94.142-1.932Z",opacity:.12}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:.8,fillRule:"evenodd",d:"M11.395.798a3.752 3.752 0 0 1 1.41.038l.233.061c.541.167 1.071.494 1.817.942l5.2 3.12c.808.484 1.357.804 1.761 1.264l.124.148c.28.354.494.756.632 1.187l.062.221c.123.525.116 1.115.116 1.939v4.564c0 .824.007 1.414-.116 1.939l-.062.221c-.137.431-.352.833-.632 1.187l-.124.148c-.404.46-.953.78-1.76 1.264l-5.2 3.12c-.747.448-1.277.775-1.818.942l-.233.061a3.752 3.752 0 0 1-1.41.038l-.2-.038c-.47-.103-.91-.328-1.459-.65l-.592-.353-5.2-3.12c-.706-.424-1.215-.721-1.601-1.097l-.16-.167a3.75 3.75 0 0 1-.692-1.152l-.063-.183c-.187-.582-.178-1.218-.178-2.16V9.718c0-.942-.009-1.577.178-2.16a3.75 3.75 0 0 1 .755-1.335l.16-.167c.386-.376.895-.673 1.601-1.097l5.2-3.12c.853-.512 1.424-.865 2.051-1.003l.2-.038ZM12.75 12.92v8.694c.274-.11.636-.32 1.334-.739l5.2-3.12c.892-.535 1.192-.726 1.405-.968l.145-.181a2.25 2.25 0 0 0 .31-.62l.032-.119c.067-.288.074-.674.074-1.585V9.718c0-.91-.007-1.297-.074-1.585l-.033-.12a2.254 2.254 0 0 0-.068-.182L12.75 12.92ZM2.856 8.014c-.098.307-.106.663-.106 1.704v4.564c0 1.04.008 1.397.106 1.704l.082.217c.093.212.219.41.372.584l.085.089c.213.206.54.41 1.32.879l5.2 3.12.603.357c.33.192.55.306.732.38V12.92L2.925 7.832c-.025.06-.049.12-.069.182Zm5.876 1.61L12 11.621l8.038-4.913c-.191-.122-.434-.27-.754-.463l-2.533-1.52-8.019 4.9Zm3.75-7.323a2.25 2.25 0 0 0-.964 0c-.331.072-.66.258-1.602.824l-5.2 3.12c-.321.193-.565.341-.756.463l3.335 2.038L15.3 3.855l-1.216-.73c-.825-.495-1.18-.7-1.477-.791l-.125-.033Z",clipRule:"evenodd"})]})),Cw=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:"0.12",d:"M13.566 2.59c-.404.247-.75.593-1.441 1.285L7 9c-1.09 1.09-1.636 1.636-1.927 2.224a4 4 0 000 3.552c.291.588.836 1.133 1.927 2.224 1.09 1.09 1.636 1.636 2.224 1.927a4 4 0 003.552 0C13.364 18.636 13.91 18.09 15 17l5.125-5.126c.692-.691 1.037-1.037 1.285-1.44.22-.359.38-.749.479-1.157.11-.46.11-.95.11-1.928V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 00-1.31-1.311C19.718 2 18.878 2 17.198 2h-.549c-.978 0-1.467 0-1.928.11a4 4 0 00-1.156.48zM15.002 11a2 2 0 100-4 2 2 0 000 4z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.002 6.25a2.75 2.75 0 100 5.5 2.75 2.75 0 000-5.5zM13.752 9a1.25 1.25 0 112.5 0 1.25 1.25 0 01-2.5 0z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.557 1.25h.674c.813 0 1.469 0 2 .043.546.045 1.026.14 1.47.366a3.75 3.75 0 011.64 1.639c.226.444.32.924.365 1.47.043.531.043 1.187.043 2v.675c0 .889 0 1.461-.131 2.01a4.749 4.749 0 01-.569 1.372c-.294.48-.7.885-1.328 1.514l-1.407 1.407.44 2.196c.163.816.276 1.38.222 1.937-.048.49-.192.967-.424 1.402-.264.493-.67.9-1.26 1.488l-1.76 1.761a.75.75 0 01-1.142-.094L13.294 19.5a4.75 4.75 0 01-4.403.099c-.7-.347-1.327-.974-2.31-1.957l-.223-.223c-.983-.983-1.61-1.61-1.957-2.31a4.75 4.75 0 01.098-4.402L1.565 8.61a.75.75 0 01-.095-1.14l1.762-1.762c.588-.589.995-.996 1.488-1.26a3.75 3.75 0 011.402-.424c.556-.054 1.12.06 1.936.223l2.195.439 1.407-1.408c.629-.628 1.034-1.034 1.514-1.328a4.75 4.75 0 011.373-.569c.548-.131 1.12-.131 2.01-.131zM8.978 5.96l-1.106-.22c-.966-.194-1.298-.253-1.604-.223a2.25 2.25 0 00-.842.255c-.271.145-.515.378-1.212 1.075L3.157 7.904 5.419 9.52l.559-.558.38-.38 2.62-2.622zm-3.233 5.597c.2-.404.566-.803 1.46-1.7L11.03 6.03a.766.766 0 00.017-.017l1.608-1.608c.717-.717.993-.986 1.303-1.176.29-.178.608-.31.94-.39.353-.084.738-.089 1.752-.089h.55c.852 0 1.446 0 1.909.038.453.037.714.107.912.207.423.216.767.56.983.984.1.197.17.458.207.912.038.462.038 1.057.038 1.909v.55c0 1.013-.005 1.398-.09 1.752a3.25 3.25 0 01-.389.94c-.19.31-.459.585-1.175 1.302L14.47 16.47c-1.134 1.134-1.577 1.563-2.027 1.786a3.25 3.25 0 01-2.886 0c-.372-.184-.74-.51-1.495-1.256L9.53 15.53a.75.75 0 00-1.06-1.06L7 15.938c-.747-.756-1.072-1.123-1.256-1.495a3.25 3.25 0 010-2.886zm10.351 9.287L14.48 18.58l3.56-3.56.221 1.107c.194.967.252 1.298.222 1.605a2.25 2.25 0 01-.254.841c-.145.272-.378.515-1.075 1.212l-1.058 1.058z",fill:"currentColor"})]})),Ck=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59472 1.25 7.51929 1.24999 6.65494 1.32061C5.77479 1.39252 5.04768 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04768 1.39252 5.77479 1.32061 6.65494C1.24999 7.51929 1.25 8.59472 1.25 9.96644V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04768 22.4586 5.77479 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59473 22.75 7.51927 22.6794 6.65494C22.6075 5.77479 22.4586 5.04768 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4796 12.2222L17.6085 12.2291L17.6029 10.7291L19.474 10.7222L19.4796 12.2222ZM15.3662 12.2375L13.124 12.2459L13.1184 10.7459L15.3606 10.7375L15.3662 12.2375ZM10.8817 12.2542L8.63945 12.2626L8.63386 10.7626L10.8761 10.7542L10.8817 12.2542ZM6.39719 12.2709L4.52607 12.2779L4.52048 10.7779L6.3916 10.7709L6.39719 12.2709Z",fill:"currentColor"})]})),CS=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",opacity:"0.12",d:"M2 10C2 7.19974 2 5.79961 2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497C5.79961 2 7.19974 2 10 2H14C16.8003 2 18.2004 2 19.27 2.54497C20.2108 3.02433 20.9757 3.78924 21.455 4.73005C22 5.79961 22 7.19974 22 10V14C22 16.8003 22 18.2004 21.455 19.27C20.9757 20.2108 20.2108 20.9757 19.27 21.455C18.2004 22 16.8003 22 14 22H10C7.19974 22 5.79961 22 4.73005 21.455C3.78924 20.9757 3.02433 20.2108 2.54497 19.27C2 18.2004 2 16.8003 2 14V10Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.96644 1.25C8.59472 1.25 7.51929 1.24999 6.65494 1.32061C5.77479 1.39252 5.04768 1.54138 4.38955 1.87671C3.30762 2.42798 2.42798 3.30762 1.87671 4.38955C1.54138 5.04768 1.39252 5.77479 1.32061 6.65494C1.24999 7.51929 1.25 8.59472 1.25 9.96644V14.0336C1.25 15.4053 1.24999 16.4807 1.32061 17.3451C1.39252 18.2252 1.54138 18.9523 1.87671 19.6104C2.42798 20.6924 3.30762 21.572 4.38955 22.1233C5.04768 22.4586 5.77479 22.6075 6.65494 22.6794C7.51927 22.75 8.59469 22.75 9.96637 22.75H14.0336C15.4053 22.75 16.4807 22.75 17.3451 22.6794C18.2252 22.6075 18.9523 22.4586 19.6104 22.1233C20.6924 21.572 21.572 20.6924 22.1233 19.6104C22.4586 18.9523 22.6075 18.2252 22.6794 17.3451C22.75 16.4807 22.75 15.4053 22.75 14.0336V9.96642C22.75 8.59473 22.75 7.51927 22.6794 6.65494C22.6075 5.77479 22.4586 5.04768 22.1233 4.38955C21.572 3.30762 20.6924 2.42798 19.6104 1.87671C18.9523 1.54138 18.2252 1.39252 17.3451 1.32061C16.4807 1.24999 15.4053 1.25 14.0336 1.25H9.96644ZM5.07054 3.21322C5.48197 3.00359 5.9897 2.87996 6.77708 2.81563C7.57322 2.75058 8.58749 2.75 10 2.75H14C15.4125 2.75 16.4268 2.75058 17.2229 2.81563C18.0103 2.87996 18.518 3.00359 18.9295 3.21322C19.7291 3.62068 20.3793 4.27085 20.7868 5.07054C20.9964 5.48197 21.12 5.9897 21.1844 6.77708C21.2494 7.57322 21.25 8.58749 21.25 10V14C21.25 15.4125 21.2494 16.4268 21.1844 17.2229C21.12 18.0103 20.9964 18.518 20.7868 18.9295C20.3793 19.7291 19.7291 20.3793 18.9295 20.7868C18.518 20.9964 18.0103 21.12 17.2229 21.1844C16.4268 21.2494 15.4125 21.25 14 21.25H10C8.58749 21.25 7.57322 21.2494 6.77708 21.1844C5.9897 21.12 5.48197 20.9964 5.07054 20.7868C4.27085 20.3793 3.62068 19.7291 3.21322 18.9295C3.00359 18.518 2.87996 18.0103 2.81563 17.2229C2.75058 16.4268 2.75 15.4125 2.75 14V10C2.75 8.58749 2.75058 7.57322 2.81563 6.77708C2.87996 5.9897 3.00359 5.48197 3.21322 5.07054C3.62068 4.27085 4.27085 3.62068 5.07054 3.21322Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6749 8.04877L17.1069 9.06975L16.2884 7.81273L17.8564 6.79175L18.6749 8.04877ZM15.2278 10.2932L13.3488 11.5167L12.5303 10.2597L14.4093 9.03622L15.2278 10.2932ZM11.4697 12.7402L9.59064 13.9637L8.77217 12.7067L10.6512 11.4832L11.4697 12.7402ZM7.71158 15.1872L6.14354 16.2082L5.32507 14.9511L6.89311 13.9302L7.71158 15.1872Z",fill:"currentColor"})]})),CP=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 25 26"},e,{children:[(0,g.jsx)("g",{filter:"url(#filter0_dd_0_1)",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5143 8.8317C21.968 9.98998 22.2171 11.2515 22.2171 12.5685C22.2171 18.1883 17.699 22.7441 12.1256 22.7441C6.55221 22.7441 2.03409 18.1883 2.03409 12.5685C2.03409 6.94864 6.55221 2.39287 12.1256 2.39287C13.5315 2.39287 14.8732 2.68387 16.0922 3.20967L16.8081 2.5398L18.2922 4.15244L16.4787 5.84925C16.442 5.88357 16.4117 5.92331 16.3884 5.96664L16.3794 5.84326C15.833 5.49116 15.2409 5.2049 14.614 4.99557C13.8315 4.73429 12.9949 4.59287 12.1256 4.59287C7.75719 4.59287 4.21591 8.16366 4.21591 12.5685C4.21591 16.9733 7.75719 20.5441 12.1256 20.5441C16.494 20.5441 20.0353 16.9733 20.0353 12.5685C20.0353 11.7267 19.9059 10.9153 19.6662 10.1536C19.487 9.58397 19.246 9.04207 18.9512 8.53587C18.9373 8.51198 18.9233 8.48816 18.9091 8.46443L18.7121 8.4348C18.7433 8.4172 18.7726 8.39579 18.7993 8.37079L20.6127 6.67398C20.8923 6.41238 20.7476 5.94084 20.3704 5.88413L19.5058 5.75415C19.2954 5.72251 19.1348 5.54804 19.1192 5.3341L19.1013 5.08745L19.0969 5.02683M21.5143 8.8317L22.0968 8.28662C23.5973 6.88263 22.9896 4.43546 21.1557 3.81945C20.6834 1.92943 18.3085 1.13581 16.8081 2.5398L18.2922 4.15244C18.5717 3.89084 19.0273 4.07149 19.0552 4.45505L19.0969 5.02683M19.5729 5.3005L19.363 5.31604Z",className:"invertedFill"})}),(0,g.jsxs)("mask",{id:"path-2-outside-1_0_1",maskUnits:"userSpaceOnUse",x:"1.21591",y:"0.0292969",width:"23",height:"24",fill:"black",children:[(0,g.jsx)("rect",{fill:"white",x:"1.21591",y:"0.0292969",width:"23",height:"24"}),(0,g.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z"}),(0,g.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z"})]}),(0,g.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M12.1256 7.56053C13.1053 7.56053 14.0187 7.84656 14.7883 8.34033L13.9582 9.13878C13.4129 8.84191 12.7888 8.67341 12.1256 8.67341C9.99219 8.67341 8.26272 10.4173 8.26272 12.5685C8.26272 14.7196 9.99219 16.4635 12.1256 16.4635C14.259 16.4635 15.9885 14.7196 15.9885 12.5685C15.9885 11.9036 15.8232 11.2776 15.5319 10.7299L16.3536 9.93958C16.8219 10.7037 17.0921 11.6043 17.0921 12.5685C17.0921 15.3343 14.8685 17.5764 12.1256 17.5764C9.38264 17.5764 7.15905 15.3343 7.15905 12.5685C7.15905 9.80266 9.38264 7.56053 12.1256 7.56053Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,g.jsx)("path",{d:"M12.237 10.2544C12.4096 10.2544 12.5775 10.2742 12.7388 10.3116L11.468 11.534C11.0228 11.9622 11.0062 12.6732 11.4309 13.1221C11.8556 13.571 12.5608 13.5878 13.0059 13.1596L14.3695 11.848C14.4316 12.0547 14.4651 12.2739 14.4651 12.5011C14.4651 13.7418 13.4675 14.7477 12.237 14.7477C11.0065 14.7477 10.0089 13.7418 10.0089 12.5011C10.0089 11.2603 11.0065 10.2544 12.237 10.2544Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7121 8.4348L18.9091 8.46442C19.6241 9.66341 20.0353 11.0675 20.0353 12.5685C20.0353 16.9733 16.494 20.5441 12.1256 20.5441C7.75719 20.5441 4.21591 16.9733 4.21591 12.5685C4.21591 8.16366 7.75719 4.59287 12.1256 4.59287C13.6915 4.59287 15.1511 5.05168 16.3794 5.84326L16.3884 5.96664C16.4117 5.92331 16.442 5.88357 16.4787 5.84925L18.2922 4.15244C18.5717 3.89083 19.0273 4.07149 19.0552 4.45505L19.1192 5.3341C19.1348 5.54804 19.2954 5.72251 19.5058 5.75415L20.3704 5.88413C20.7476 5.94084 20.8923 6.41238 20.6127 6.67398L18.7993 8.37079C18.7726 8.39579 18.7433 8.4172 18.7121 8.4348ZM12.3487 11.6184L16.4398 7.49313L16.383 6.80637L16.1483 7.03218C15.0214 6.19827 13.6305 5.70574 12.1256 5.70574C8.36674 5.70574 5.31959 8.77829 5.31959 12.5685C5.31959 16.3586 8.36674 19.4312 12.1256 19.4312C15.8844 19.4312 18.9316 16.3586 18.9316 12.5685C18.9316 11.1068 18.4784 9.75188 17.706 8.63874L17.9088 8.44364L17.1708 8.37962L12.976 12.2569L12.5446 12.6719C12.3665 12.8432 12.0844 12.8365 11.9146 12.6569C11.7447 12.4774 11.7513 12.1929 11.9294 12.0217L12.3487 11.6184Z",className:"invertedStroke",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#path-2-outside-1_0_1)"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_0_1",x:"0.884091",y:"0.676019",width:"23.2087",height:"24.368",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_0_1"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.15"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_0_1",result:"effect2_dropShadow_0_1"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_0_1",result:"shape"})]})})]})),CL=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 31 32"},e,{children:[(0,g.jsxs)("g",{filter:"url(#filter0_dd_1383_43)",children:[(0,g.jsx)("path",{d:"M4.17969 12.8959C4.17969 9.84493 4.17969 8.31945 4.77344 7.15414C5.29572 6.1291 6.1291 5.29572 7.15414 4.77344C8.31945 4.17969 9.84493 4.17969 12.8959 4.17969H17.254C20.3049 4.17969 21.8304 4.17969 22.9957 4.77344C24.0207 5.29572 24.8541 6.1291 25.3764 7.15414C25.9702 8.31945 25.9702 9.84493 25.9702 12.8959V17.254C25.9702 20.3049 25.9702 21.8304 25.3764 22.9957C24.8541 24.0207 24.0207 24.8541 22.9957 25.3764C21.8304 25.9702 20.3049 25.9702 17.254 25.9702H12.8959C9.84493 25.9702 8.31945 25.9702 7.15414 25.3764C6.1291 24.8541 5.29572 24.0207 4.77344 22.9957C4.17969 21.8304 4.17969 20.3049 4.17969 17.254V12.8959Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M3.43693 6.47315C3.01435 7.30251 2.84069 8.19458 2.75889 9.19574C2.67966 10.1655 2.67967 11.3608 2.67969 12.8324L2.67969 12.8959V17.254L2.67969 17.3175C2.67967 18.789 2.67966 19.9844 2.75889 20.9541C2.84069 21.9553 3.01435 22.8473 3.43693 23.6767C4.10302 24.984 5.16587 26.0468 6.47315 26.7129C7.30251 27.1355 8.19458 27.3092 9.19574 27.391C10.1655 27.4702 11.3608 27.4702 12.8323 27.4702H12.8959H17.254H17.3175C18.7891 27.4702 19.9844 27.4702 20.9541 27.391C21.9553 27.3092 22.8473 27.1355 23.6767 26.7129C24.984 26.0468 26.0468 24.984 26.7129 23.6767C27.1355 22.8473 27.3092 21.9553 27.391 20.9541C27.4702 19.9844 27.4702 18.7891 27.4702 17.3175V17.254V12.8959V12.8323C27.4702 11.3608 27.4702 10.1655 27.391 9.19574C27.3092 8.19458 27.1355 7.30251 26.7129 6.47316C26.0468 5.16587 24.984 4.10302 23.6767 3.43693C22.8473 3.01435 21.9553 2.84069 20.9541 2.75889C19.9844 2.67966 18.789 2.67967 17.3175 2.67969L17.254 2.67969H12.8959L12.8324 2.67969C11.3608 2.67967 10.1655 2.67966 9.19574 2.75889C8.19458 2.84069 7.30251 3.01435 6.47315 3.43693C5.16588 4.10302 4.10302 5.16588 3.43693 6.47315Z",className:"invertedStroke",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,g.jsx)("path",{d:"M4.17969 12.8959C4.17969 9.84493 4.17969 8.31945 4.77344 7.15414C5.29572 6.1291 6.1291 5.29572 7.15414 4.77344C8.31945 4.17969 9.84493 4.17969 12.8959 4.17969H17.254C20.3049 4.17969 21.8304 4.17969 22.9957 4.77344C24.0207 5.29572 24.8541 6.1291 25.3764 7.15414C25.9702 8.31945 25.9702 9.84493 25.9702 12.8959V17.254C25.9702 20.3049 25.9702 21.8304 25.3764 22.9957C24.8541 24.0207 24.0207 24.8541 22.9957 25.3764C21.8304 25.9702 20.3049 25.9702 17.254 25.9702H12.8959C9.84493 25.9702 8.31945 25.9702 7.15414 25.3764C6.1291 24.8541 5.29572 24.0207 4.77344 22.9957C4.17969 21.8304 4.17969 20.3049 4.17969 17.254V12.8959Z",className:"invertedFill"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8581 3.36133C11.3636 3.36132 10.1919 3.36132 9.25013 3.43826C8.2912 3.51661 7.499 3.67879 6.78195 4.04415C5.60316 4.64477 4.64477 5.60316 4.04415 6.78195C3.67879 7.499 3.51661 8.2912 3.43826 9.25013C3.36132 10.1919 3.36132 11.3636 3.36133 12.8581V17.2893C3.36132 18.7838 3.36132 19.9556 3.43826 20.8973C3.51661 21.8562 3.67879 22.6484 4.04415 23.3655C4.64477 24.5443 5.60316 25.5027 6.78195 26.1033C7.499 26.4686 8.2912 26.6308 9.25013 26.7092C10.1918 26.7861 11.3635 26.7861 12.858 26.7861H17.2893C18.7838 26.7861 19.9556 26.7861 20.8973 26.7092C21.8562 26.6308 22.6484 26.4686 23.3655 26.1033C24.5443 25.5027 25.5027 24.5443 26.1033 23.3655C26.4686 22.6484 26.6308 21.8562 26.7092 20.8973C26.7861 19.9556 26.7861 18.7839 26.7861 17.2894V12.8581C26.7861 11.3636 26.7861 10.1918 26.7092 9.25013C26.6308 8.2912 26.4686 7.499 26.1033 6.78195C25.5027 5.60316 24.5443 4.64477 23.3655 4.04415C22.6484 3.67879 21.8562 3.51661 20.8973 3.43826C19.9556 3.36132 18.7838 3.36132 17.2893 3.36133H12.8581ZM7.5239 5.50031C7.97216 5.27191 8.52535 5.13721 9.38322 5.06712C10.2506 4.99625 11.3557 4.99561 12.8947 4.99561H17.2528C18.7917 4.99561 19.8968 4.99625 20.7642 5.06712C21.6221 5.13721 22.1753 5.27191 22.6235 5.50031C23.4948 5.94425 24.2032 6.65262 24.6471 7.5239C24.8755 7.97216 25.0102 8.52535 25.0803 9.38322C25.1512 10.2506 25.1518 11.3557 25.1518 12.8947V17.2528C25.1518 18.7917 25.1512 19.8968 25.0803 20.7642C25.0102 21.6221 24.8755 22.1753 24.6471 22.6235C24.2032 23.4948 23.4948 24.2032 22.6235 24.6471C22.1753 24.8755 21.6221 25.0102 20.7642 25.0803C19.8968 25.1512 18.7917 25.1518 17.2528 25.1518H12.8947C11.3557 25.1518 10.2506 25.1512 9.38322 25.0803C8.52535 25.0102 7.97216 24.8755 7.5239 24.6471C6.65262 24.2032 5.94425 23.4948 5.50031 22.6235C5.27191 22.1753 5.13721 21.6221 5.06712 20.7642C4.99625 19.8968 4.99561 18.7917 4.99561 17.2528V12.8947C4.99561 11.3557 4.99625 10.2506 5.06712 9.38322C5.13721 8.52535 5.27191 7.97216 5.50031 7.5239C5.94425 6.65262 6.65262 5.94425 7.5239 5.50031Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.3457 10.7699L20.6373 11.8823L19.7456 10.5128L21.454 9.40039L22.3457 10.7699ZM18.59 13.2153L16.5428 14.5484L15.651 13.1788L17.6983 11.8458L18.59 13.2153ZM14.4955 15.8814L12.4482 17.2144L11.5565 15.8448L13.6038 14.5118L14.4955 15.8814ZM10.4009 18.5474L8.69252 19.6598L7.80078 18.2903L9.5092 17.1779L10.4009 18.5474Z",fill:"currentColor"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_1383_43",x:"0.0296799",y:"0.0296818",width:"30.0905",height:"31.2405",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_43"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.15"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_43",result:"effect2_dropShadow_1383_43"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_43",result:"shape"})]})})]})),CM=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,g.jsxs)("g",{filter:"url(#filter0_dd_1383_49)",children:[(0,g.jsx)("path",{d:"M5.17969 13.8959C5.17969 10.8449 5.17969 9.31945 5.77344 8.15414C6.29572 7.1291 7.1291 6.29572 8.15414 5.77344C9.31945 5.17969 10.8449 5.17969 13.8959 5.17969H18.254C21.3049 5.17969 22.8304 5.17969 23.9957 5.77344C25.0207 6.29572 25.8541 7.1291 26.3764 8.15414C26.9702 9.31945 26.9702 10.8449 26.9702 13.8959V18.254C26.9702 21.3049 26.9702 22.8304 26.3764 23.9957C25.8541 25.0207 25.0207 25.8541 23.9957 26.3764C22.8304 26.9702 21.3049 26.9702 18.254 26.9702H13.8959C10.8449 26.9702 9.31945 26.9702 8.15414 26.3764C7.1291 25.8541 6.29572 25.0207 5.77344 23.9957C5.17969 22.8304 5.17969 21.3049 5.17969 18.254V13.8959Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M4.43693 7.47315C4.01435 8.30251 3.84069 9.19458 3.75889 10.1957C3.67966 11.1655 3.67967 12.3608 3.67969 13.8324L3.67969 13.8959V18.254L3.67969 18.3175C3.67967 19.789 3.67966 20.9844 3.75889 21.9541C3.84069 22.9553 4.01435 23.8473 4.43693 24.6767C5.10302 25.984 6.16587 27.0468 7.47315 27.7129C8.30251 28.1355 9.19458 28.3092 10.1957 28.391C11.1655 28.4702 12.3608 28.4702 13.8323 28.4702H13.8959H18.254H18.3175C19.7891 28.4702 20.9844 28.4702 21.9541 28.391C22.9553 28.3092 23.8473 28.1355 24.6767 27.7129C25.984 27.0468 27.0468 25.984 27.7129 24.6767C28.1355 23.8473 28.3092 22.9553 28.391 21.9541C28.4702 20.9844 28.4702 19.7891 28.4702 18.3175V18.254V13.8959V13.8323C28.4702 12.3608 28.4702 11.1655 28.391 10.1957C28.3092 9.19458 28.1355 8.30251 27.7129 7.47316C27.0468 6.16587 25.984 5.10302 24.6767 4.43693C23.8473 4.01435 22.9553 3.84069 21.9541 3.75889C20.9844 3.67966 19.789 3.67967 18.3175 3.67969L18.254 3.67969H13.8959L13.8324 3.67969C12.3608 3.67967 11.1655 3.67966 10.1957 3.75889C9.19458 3.84069 8.30251 4.01435 7.47315 4.43693C6.16588 5.10302 5.10302 6.16588 4.43693 7.47315Z",className:"invertedStroke",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,g.jsx)("path",{d:"M5.17969 13.8959C5.17969 10.8449 5.17969 9.31945 5.77344 8.15414C6.29572 7.1291 7.1291 6.29572 8.15414 5.77344C9.31945 5.17969 10.8449 5.17969 13.8959 5.17969H18.254C21.3049 5.17969 22.8304 5.17969 23.9957 5.77344C25.0207 6.29572 25.8541 7.1291 26.3764 8.15414C26.9702 9.31945 26.9702 10.8449 26.9702 13.8959V18.254C26.9702 21.3049 26.9702 22.8304 26.3764 23.9957C25.8541 25.0207 25.0207 25.8541 23.9957 26.3764C22.8304 26.9702 21.3049 26.9702 18.254 26.9702H13.8959C10.8449 26.9702 9.31945 26.9702 8.15414 26.3764C7.1291 25.8541 6.29572 25.0207 5.77344 23.9957C5.17969 22.8304 5.17969 21.3049 5.17969 18.254V13.8959Z",className:"invertedFill"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8581 4.36133C12.3636 4.36132 11.1919 4.36132 10.2501 4.43826C9.2912 4.51661 8.499 4.67879 7.78195 5.04415C6.60316 5.64477 5.64477 6.60316 5.04415 7.78195C4.67879 8.499 4.51661 9.2912 4.43826 10.2501C4.36132 11.1919 4.36132 12.3636 4.36133 13.8581V18.2893C4.36132 19.7838 4.36132 20.9556 4.43826 21.8973C4.51661 22.8562 4.67879 23.6484 5.04415 24.3655C5.64477 25.5443 6.60316 26.5027 7.78195 27.1033C8.499 27.4686 9.2912 27.6308 10.2501 27.7092C11.1918 27.7861 12.3635 27.7861 13.858 27.7861H18.2893C19.7838 27.7861 20.9556 27.7861 21.8973 27.7092C22.8562 27.6308 23.6484 27.4686 24.3655 27.1033C25.5443 26.5027 26.5027 25.5443 27.1033 24.3655C27.4686 23.6484 27.6308 22.8562 27.7092 21.8973C27.7861 20.9556 27.7861 19.7839 27.7861 18.2894V13.8581C27.7861 12.3636 27.7861 11.1918 27.7092 10.2501C27.6308 9.2912 27.4686 8.499 27.1033 7.78195C26.5027 6.60316 25.5443 5.64477 24.3655 5.04415C23.6484 4.67879 22.8562 4.51661 21.8973 4.43826C20.9556 4.36132 19.7838 4.36132 18.2893 4.36133H13.8581ZM8.5239 6.50031C8.97216 6.27191 9.52535 6.13721 10.3832 6.06712C11.2506 5.99625 12.3557 5.99561 13.8947 5.99561H18.2528C19.7917 5.99561 20.8968 5.99625 21.7642 6.06712C22.6221 6.13721 23.1753 6.27191 23.6235 6.50031C24.4948 6.94425 25.2032 7.65262 25.6471 8.5239C25.8755 8.97216 26.0102 9.52535 26.0803 10.3832C26.1512 11.2506 26.1518 12.3557 26.1518 13.8947V18.2528C26.1518 19.7917 26.1512 20.8968 26.0803 21.7642C26.0102 22.6221 25.8755 23.1753 25.6471 23.6235C25.2032 24.4948 24.4948 25.2032 23.6235 25.6471C23.1753 25.8755 22.6221 26.0102 21.7642 26.0803C20.8968 26.1512 19.7917 26.1518 18.2528 26.1518H13.8947C12.3557 26.1518 11.2506 26.1512 10.3832 26.0803C9.52535 26.0102 8.97216 25.8755 8.5239 25.6471C7.65262 25.2032 6.94425 24.4948 6.50031 23.6235C6.27191 23.1753 6.13721 22.6221 6.06712 21.7642C5.99625 20.8968 5.99561 19.7917 5.99561 18.2528V13.8947C5.99561 12.3557 5.99625 11.2506 6.06712 10.3832C6.13721 9.52535 6.27191 8.97216 6.50031 8.5239C6.94425 7.65262 7.65262 6.94425 8.5239 6.50031Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.2128 16.4155L22.1742 16.3988L22.1875 14.7646L24.2261 14.7812L24.2128 16.4155ZM19.7313 16.3789L17.2884 16.359L17.3017 14.7247L19.7446 14.7447L19.7313 16.3789ZM14.8454 16.339L12.4025 16.3191L12.4158 14.6849L14.8588 14.7048L14.8454 16.339ZM9.95958 16.2992L7.921 16.2825L7.93434 14.6483L9.97292 14.6649L9.95958 16.2992Z",fill:"currentColor"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_1383_49",x:"0.926728",y:"0.926729",width:"30.2964",height:"31.5493",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.626476"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_49"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.25295"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.626476"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_49",result:"effect2_dropShadow_1383_49"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_49",result:"shape"})]})})]})),CO=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fill:"currentColor",d:"M19.544 3.75c-1.39-1.433-4.636-1.791-6.085-1.791-6.955.895-9.563 4.477-10.432 9.85-.87 5.373 5.216 9.85 6.954 10.746 1.74.895 6.955 0 7.824-.896.87-.895 1.74-2.686 0-3.581-1.738-.896-.869-2.687-.869-3.582 0-.896 2.608-1.791 4.347-3.582 1.738-1.791 0-5.373-1.739-7.164z",opacity:"0.12"}),(0,g.jsx)("path",{fill:"currentColor",d:"M14.57 9.107a1.906 1.906 0 100-3.812 1.906 1.906 0 000 3.812zM9.137 10.727a1.81 1.81 0 100-3.622 1.81 1.81 0 000 3.622zM9.137 14.158a1.43 1.43 0 11-2.86 0 1.43 1.43 0 012.86 0zM10.185 19.114a1.43 1.43 0 100-2.86 1.43 1.43 0 000 2.86z"}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M18.81 13.81c-1.385.966-2.442 1.703-1.533 2.938.247.294.577.478.905.662.392.22.783.438 1.03.841 1.614 2.49-1.216 4.994-3.572 5.415-4.493 1.088-8.794-.549-11.502-3.95C-1.9 11.957 4.394.402 14.185 1.164c3.236.165 6.764 1.844 7.83 5.1 1.378 4.353-1.243 6.18-3.205 7.548zM14.074 2.589C5.507 1.921.004 12.066 5.261 18.833c2.375 2.977 6.113 4.395 10.043 3.444l.042-.01.043-.008c.852-.152 1.838-.71 2.414-1.423.277-.342.411-.66.445-.928.03-.242-.008-.528-.236-.879l-.01-.016-.01-.016c-.014-.023-.056-.085-.416-.288a8.782 8.782 0 00-.091-.05c-.306-.17-.872-.48-1.301-.99l-.03-.036-.029-.038c-.418-.569-.697-1.259-.597-2.033.096-.737.503-1.286.866-1.661.363-.376.811-.708 1.21-.99l.414-.291c.278-.193.545-.38.826-.591.816-.614 1.459-1.239 1.815-2.012.333-.723.491-1.745-.005-3.315-.809-2.46-3.613-3.962-6.542-4.111l-.019-.001-.019-.002z"})]})),CT=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fill:"currentColor",d:"M2.32698 3.63803C2 4.27976 2 5.11984 2 6.8V17.2C2 18.8802 2 19.7202 2.32698 20.362C2.6146 20.9265 3.07354 21.3854 3.63803 21.673C4.27976 22 5.11984 22 6.8 22H12H17.5C18.8978 22 19.5967 22 20.1481 21.7716C20.8831 21.4672 21.4672 20.8831 21.7716 20.1481C22 19.5967 22 18.8978 22 17.5V17C22 16.07 22 15.605 21.8978 15.2235C21.6204 14.1883 20.8117 13.3796 19.7765 13.1022C19.395 13 18.93 13 18 13L12 20V6.8C12 5.11984 12 4.27976 11.673 3.63803C11.3854 3.07354 10.9265 2.6146 10.362 2.32698C9.72024 2 8.88016 2 7.2 2H6.8C5.11984 2 4.27976 2 3.63803 2.32698C3.07354 2.6146 2.6146 3.07354 2.32698 3.63803Z",opacity:"0.12"}),(0,g.jsx)("path",{fill:"currentColor",d:"M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z"}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M6.7679 1.25C5.95506 1.24999 5.29944 1.24999 4.76853 1.29336C4.2219 1.33803 3.74175 1.43239 3.29754 1.65873C2.59193 2.01825 2.01825 2.59193 1.65873 3.29754C1.43239 3.74175 1.33803 4.2219 1.29336 4.76853C1.24999 5.29944 1.24999 5.95505 1.25 6.76788V17.2321C1.24999 18.0449 1.24999 18.7006 1.29336 19.2315C1.33803 19.7781 1.43239 20.2582 1.65873 20.7025C2.01825 21.4081 2.59193 21.9817 3.29754 22.3413C3.74175 22.5676 4.2219 22.662 4.76853 22.7066C5.29944 22.75 5.95505 22.75 6.76788 22.75H17.5266C18.203 22.75 18.7485 22.75 19.1925 22.7197C19.6491 22.6886 20.0528 22.6229 20.4351 22.4645C21.3539 22.0839 22.0839 21.3539 22.4645 20.4351C22.6229 20.0528 22.6886 19.6491 22.7197 19.1925C22.75 18.7485 22.75 18.203 22.75 17.5266L22.75 16.8842C22.7503 16.0663 22.7505 15.5081 22.6222 15.0294C22.2755 13.7353 21.2647 12.7245 19.9706 12.3778C19.7807 12.3269 19.5782 12.2962 19.3521 12.2778L19.7907 11.7467C20.3053 11.1243 20.6574 10.6984 20.8642 10.243C21.3632 9.14398 21.3027 7.8719 20.7017 6.82515C20.4526 6.39148 20.0617 6.00085 19.4905 5.43004L19.3226 5.26222C18.7015 4.64075 18.2775 4.21651 17.8111 3.95918C16.6835 3.33701 15.3154 3.33706 14.1878 3.95933C13.7355 4.20889 13.3232 4.61539 12.7324 5.20648C12.7262 5.05176 12.7179 4.90597 12.7066 4.76853C12.662 4.2219 12.5676 3.74175 12.3413 3.29754C11.9817 2.59193 11.4081 2.01825 10.7025 1.65873C10.2582 1.43239 9.77811 1.33803 9.23147 1.29336C8.70056 1.24999 8.04495 1.24999 7.23212 1.25H6.7679ZM11.25 7.00026C11.25 6.99985 11.25 6.99944 11.25 6.99902V6.8C11.25 5.94755 11.2494 5.35331 11.2116 4.89068C11.1745 4.43681 11.1054 4.17604 11.0048 3.97852C10.789 3.55516 10.4448 3.21095 10.0215 2.99524C9.82396 2.8946 9.5632 2.82547 9.10932 2.78838C8.64669 2.75058 8.05245 2.75 7.2 2.75H6.8C5.94755 2.75 5.35331 2.75058 4.89068 2.78838C4.43681 2.82547 4.17604 2.8946 3.97852 2.99524C3.55516 3.21095 3.21095 3.55516 2.99524 3.97852C2.8946 4.17604 2.82547 4.43681 2.78838 4.89068C2.75058 5.35331 2.75 5.94755 2.75 6.8V17.2C2.75 18.0525 2.75058 18.6467 2.78838 19.1093C2.82547 19.5632 2.8946 19.824 2.99524 20.0215C3.21095 20.4448 3.55516 20.789 3.97852 21.0048C4.17604 21.1054 4.43681 21.1745 4.89068 21.2116C5.35331 21.2494 5.94755 21.25 6.8 21.25H11.25V20.0051C11.25 20.0014 11.25 19.9977 11.25 19.994V7.00026ZM12.75 17.9145V7.31029L13.6491 6.4111C14.3923 5.66788 14.6571 5.41355 14.9125 5.27263C15.5891 4.89927 16.4099 4.89924 17.0865 5.27254C17.3419 5.41344 17.6067 5.66775 18.35 6.41091C19.0317 7.0926 19.2644 7.33436 19.4009 7.57211C19.7615 8.20016 19.7978 8.96341 19.4984 9.62284C19.385 9.87246 19.1764 10.1352 18.5623 10.8785L12.75 17.9145ZM12.75 20.2697V21.25H17.5C18.2092 21.25 18.7035 21.2496 19.0904 21.2232C19.4706 21.1973 19.692 21.1487 19.861 21.0787C20.4123 20.8504 20.8504 20.4124 21.0787 19.861C21.1487 19.692 21.1973 19.4706 21.2232 19.0904C21.2496 18.7035 21.25 18.2092 21.25 17.5V17C21.25 16.0217 21.2436 15.6797 21.1733 15.4177C20.9653 14.6412 20.3588 14.0347 19.5823 13.8267C19.3328 13.7598 19.0107 13.7508 18.1358 13.7501L12.75 20.2697Z"})]})),CD=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{fill:"currentColor",d:"M13.6 2H10.4C8.15979 2 7.03969 2 6.18404 2.43597C5.43139 2.81947 4.81947 3.43139 4.43597 4.18404C4 5.03969 4 6.15979 4 8.4V9C4 9 8 11 12 11C16 11 20 9 20 9V8.4C20 6.15979 20 5.03969 19.564 4.18404C19.1805 3.43139 18.5686 2.81947 17.816 2.43597C16.9603 2 15.8402 2 13.6 2Z",opacity:"0.12"}),(0,g.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.16822 1.25C5.00432 1.25 3.25014 3.00418 3.25014 5.16808V8.98478C3.24995 8.99447 3.24995 9.00416 3.25014 9.01384V10.5978C3.25014 12.3541 4.24243 13.9597 5.8133 14.7451L7.92711 15.802C8.66545 16.1712 9.07667 16.9787 8.94097 17.793L8.75354 18.9175C8.41918 20.9237 9.96627 22.75 12.0001 22.75C14.034 22.75 15.5811 20.9237 15.2467 18.9175L15.0593 17.793C14.9236 16.9787 15.3348 16.1712 16.0732 15.802L18.187 14.7451C19.7579 13.9597 20.7501 12.3541 20.7501 10.5978V9.01243C20.7503 9.00369 20.7503 8.99494 20.7501 8.98619V5.16808C20.7501 3.00418 18.996 1.25 16.8321 1.25H7.16822ZM19.2501 8.54432V5.16808C19.2501 3.83261 18.1675 2.75 16.8321 2.75H13.7501V4C13.7501 4.41421 13.4144 4.75 13.0001 4.75C12.5859 4.75 12.2501 4.41421 12.2501 4V2.75H9.75014V6C9.75014 6.41421 9.41435 6.75 9.00014 6.75C8.58593 6.75 8.25014 6.41421 8.25014 6V2.75H7.16822C5.83275 2.75 4.75014 3.83261 4.75014 5.16808V8.54433C4.80645 8.57193 4.8687 8.6019 4.93666 8.63389C5.31492 8.81189 5.86859 9.05148 6.55902 9.29163C7.94338 9.77314 9.85777 10.25 12.0001 10.25C14.1425 10.25 16.0569 9.77314 17.4412 9.29163C18.1317 9.05148 18.6853 8.81189 19.0636 8.63389C19.1316 8.6019 19.1938 8.57192 19.2501 8.54432ZM4.75014 10.1955V10.5978C4.75014 11.786 5.42142 12.8721 6.48412 13.4035L8.59793 14.4604C9.92526 15.124 10.6645 16.5758 10.4206 18.0396L10.2331 19.1641C10.0511 20.256 10.8932 21.25 12.0001 21.25C13.1071 21.25 13.9491 20.256 13.7671 19.1641L13.5797 18.0396C13.3358 16.5758 14.075 15.124 15.4023 14.4604L17.5162 13.4035C18.5789 12.8721 19.2501 11.786 19.2501 10.5978V10.1955C18.8872 10.3531 18.4443 10.5309 17.934 10.7084C16.4434 11.2269 14.3578 11.75 12.0001 11.75C9.64249 11.75 7.55688 11.2269 6.06624 10.7084C5.55593 10.5309 5.11303 10.3531 4.75014 10.1955Z"})]})),CI=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("circle",{opacity:.12,cx:12,cy:12,r:5,fill:"currentColor"}),(0,g.jsx)("path",{d:"M12 1C12.5523 1 13 1.44771 13 2L13 4C13 4.55228 12.5523 5 12 5C11.4477 5 11 4.55229 11 4L11 2C11 1.44772 11.4477 1 12 1Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0001 0.990845C12.6149 0.990845 13.1134 1.48928 13.1134 2.10413L13.1134 4.08329C13.1134 4.69814 12.6149 5.19657 12.0001 5.19657C11.3852 5.19657 10.8868 4.69814 10.8868 4.08329L10.8868 2.10413C10.8868 1.48928 11.3852 0.990845 12.0001 0.990845ZM12.0001 18.8033C12.6149 18.8033 13.1134 19.3018 13.1134 19.9166L13.1134 21.8958C13.1134 22.5106 12.6149 23.0091 12.0001 23.0091C11.3852 23.0091 10.8868 22.5106 10.8868 21.8958L10.8868 19.9166C10.8868 19.3018 11.3852 18.8033 12.0001 18.8033ZM11.9998 7.8021C9.6814 7.8021 7.80193 9.68157 7.80193 12C7.80193 14.3185 9.6814 16.1979 11.9998 16.1979C14.3183 16.1979 16.1978 14.3185 16.1978 12C16.1978 9.68157 14.3183 7.8021 11.9998 7.8021ZM6.30193 12C6.30193 8.85315 8.85297 6.3021 11.9998 6.3021C15.1467 6.3021 17.6978 8.85315 17.6978 12C17.6978 15.1469 15.1467 17.6979 11.9998 17.6979C8.85297 17.6979 6.30193 15.1469 6.30193 12ZM2.10449 10.8867C1.48964 10.8867 0.991211 11.3851 0.991211 12C0.991211 12.6148 1.48964 13.1133 2.10449 13.1133H4.08366C4.6985 13.1133 5.19694 12.6148 5.19694 12C5.19694 11.3851 4.6985 10.8867 4.08366 10.8867H2.10449ZM19.917 10.8867C19.3021 10.8867 18.8037 11.3851 18.8037 12C18.8037 12.6148 19.3021 13.1133 19.917 13.1133H21.8962C22.511 13.1133 23.0094 12.6148 23.0094 12C23.0094 11.3851 22.511 10.8867 21.8962 10.8867H19.917ZM3.79101 3.79042C4.22577 3.35566 4.93066 3.35567 5.36542 3.79044L6.84982 5.27486C7.28458 5.70962 7.28458 6.41451 6.84981 6.84927C6.41504 7.28403 5.71015 7.28403 5.27539 6.84926L3.79099 5.36484C3.35623 4.93007 3.35624 4.22518 3.79101 3.79042ZM17.1504 17.1498C17.5851 16.7151 18.29 16.7151 18.7248 17.1498L20.2092 18.6342C20.6439 19.069 20.6439 19.7739 20.2092 20.2086C19.7744 20.6434 19.0695 20.6434 18.6348 20.2086L17.1504 18.7242C16.7156 18.2895 16.7156 17.5846 17.1504 17.1498ZM3.791 18.6347C3.35624 19.0694 3.35624 19.7743 3.791 20.2091C4.22576 20.6438 4.93065 20.6438 5.36542 20.2091L6.84979 18.7247C7.28456 18.2899 7.28456 17.585 6.84979 17.1503C6.41503 16.7155 5.71014 16.7155 5.27538 17.1503L3.791 18.6347ZM17.1504 5.27528C16.7156 5.71004 16.7156 6.41494 17.1504 6.8497C17.5851 7.28446 18.29 7.28446 18.7248 6.8497L20.2092 5.36532C20.6439 4.93056 20.6439 4.22567 20.2092 3.79091C19.7744 3.35614 19.0695 3.35614 18.6348 3.79091L17.1504 5.27528Z",fill:"currentColor"})]})),CE=e=>(0,g.jsxs)(bA,Object.assign({},e,{children:[(0,g.jsx)("path",{opacity:.12,d:"M3.09375 11.4547C3.09375 16.6747 7.21936 20.9063 12.3086 20.9063C16.2264 20.9063 19.5732 18.3985 20.9062 14.8625C19.8505 15.3711 18.6716 15.6554 17.4279 15.6554C12.9042 15.6554 9.23696 11.894 9.23696 7.254C9.23696 5.31345 9.87839 3.52657 10.9556 2.10425C6.50784 2.77548 3.09375 6.70615 3.09375 11.4547Z",fill:"currentColor"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6004 1.72107C11.7562 1.98333 11.7377 2.31385 11.5535 2.55704C10.5725 3.85229 9.98696 5.48094 9.98696 7.25396C9.98696 11.4978 13.3362 14.9054 17.4279 14.9054C18.556 14.9054 19.6239 14.6478 20.5807 14.1868C20.857 14.0537 21.1864 14.1021 21.4126 14.3092C21.6388 14.5162 21.7162 14.8401 21.608 15.127C20.1719 18.9364 16.558 21.6563 12.3086 21.6563C6.78732 21.6563 2.34375 17.0708 2.34375 11.4547C2.34375 6.34384 6.02053 2.0905 10.8437 1.36261C11.1454 1.31709 11.4445 1.45881 11.6004 1.72107ZM9.36549 3.29348C6.14967 4.52009 3.84375 7.70264 3.84375 11.4547C3.84375 16.2785 7.6514 20.1563 12.3086 20.1563C15.2827 20.1563 17.9084 18.5773 19.4197 16.1773C18.7789 16.3266 18.1122 16.4054 17.4279 16.4054C12.4721 16.4054 8.48696 12.2901 8.48696 7.25396C8.48696 5.83655 8.80221 4.49281 9.36549 3.29348Z",fill:"currentColor"})]})),CH=e=>(0,g.jsx)(bA,Object.assign({},e,{children:(0,g.jsx)("path",{d:"M7.52524 22.9993C7.2661 23.0012 7.00938 22.9493 6.77132 22.8469C6.53326 22.7445 6.31902 22.5939 6.14215 22.4045L5.82983 22.0921L5.44316 22.345L4.78879 22.9993H0L3.36108 19.6383L3.04876 19.2665C2.84135 19.0784 2.67588 18.8488 2.56313 18.5926C2.45038 18.3363 2.39289 18.0592 2.3944 17.7793C2.39368 17.5225 2.44617 17.2683 2.54856 17.0329C2.65094 16.7974 2.801 16.5856 2.98928 16.411L16.8054 2.59493C16.9823 2.40552 17.1965 2.25486 17.4346 2.15247C17.6726 2.05008 17.9293 1.99818 18.1885 2.00005C18.4454 1.99843 18.6998 2.0505 18.9354 2.15295C19.1711 2.25539 19.3827 2.40593 19.5567 2.59493L22.7244 5.88165C22.9122 6.05825 23.0618 6.2714 23.164 6.50798C23.2663 6.74457 23.319 6.99957 23.319 7.25731C23.319 7.51504 23.2663 7.77005 23.164 8.00663C23.0618 8.24322 22.9122 8.45637 22.7244 8.63297L8.90834 22.4491C8.7271 22.6297 8.51104 22.7716 8.27329 22.8662C8.03553 22.9608 7.78103 23.0061 7.52524 22.9993ZM3.73288 17.8685L7.52524 21.6609L14.2177 14.9685L10.4253 11.191L3.73288 17.8685ZM11.5258 10.0904L15.3033 13.8679L21.966 7.20526L18.1885 3.42776L11.5258 10.0904Z",fill:"currentColor"})})),CV=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 31 33"},e,{children:[(0,g.jsx)("g",{filter:"url(#filter0_dd_1373_19)",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.7417 6.23664C25.7417 6.09417 25.7076 5.95967 25.6471 5.84086C25.5633 5.67624 25.4288 5.54173 25.2641 5.4579C25.1453 5.39739 25.0108 5.36328 24.8684 5.36328H12.0591C11.5767 5.36328 11.1857 5.7543 11.1857 6.23664C11.1857 6.71899 11.5767 7.11 12.0591 7.11H22.7599L5.61908 24.2508C5.27801 24.5919 5.27801 25.1448 5.61908 25.4859C5.96015 25.827 6.51313 25.827 6.8542 25.4859L23.995 8.34513V19.0459C23.995 19.5283 24.386 19.9193 24.8684 19.9193C25.3507 19.9193 25.7417 19.5283 25.7417 19.0459V6.23664ZM20.995 15.5878V19.0459C20.995 21.1851 22.7292 22.9193 24.8684 22.9193C27.0076 22.9193 28.7417 21.1851 28.7417 19.0459V6.23664C28.7417 4.09744 27.0076 2.36328 24.8684 2.36328H12.0591C9.91985 2.36328 8.18569 4.09744 8.18569 6.23664C8.18569 8.37584 9.91985 10.11 12.0591 10.11H15.5172L3.49777 22.1295C1.98512 23.6421 1.98513 26.0946 3.49776 27.6072C5.0104 29.1199 7.46288 29.1199 8.97552 27.6072L20.995 15.5878Z",className:"invertedFill"})}),(0,g.jsx)("path",{d:"M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z",fill:"currentColor"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_1373_19",x:"1.19152",y:"1.19152",width:"28.722",height:"29.8937",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1373_19"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.17176"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1373_19",result:"effect2_dropShadow_1373_19"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1373_19",result:"shape"})]})})]})),CF=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,g.jsx)("g",{filter:"url(#filter0_dd_1383_13)",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.89961 14.7968C3.08522 13.5116 1.89961 11.3966 1.89961 9.00039C1.89961 5.07917 5.07839 1.90039 8.99961 1.90039C10.7798 1.90039 12.4069 2.55553 13.6531 3.63785C14.3179 3.17306 15.1269 2.90039 15.9996 2.90039L22.9996 2.90039C25.264 2.90039 27.0996 4.73602 27.0996 7.00039L27.0996 9.7243C27.5717 9.92414 28.014 10.2165 28.3987 10.6013C29.9999 12.2024 29.9999 14.7984 28.3987 16.3995L27.9182 16.8801C29.2628 18.172 30.0996 19.9885 30.0996 22.0004C30.0996 25.9216 26.9208 29.1004 22.9996 29.1004C21.2195 29.1004 19.5923 28.4453 18.3461 27.3629C17.6813 27.8277 16.8723 28.1004 15.9996 28.1004L8.99961 28.1004C6.73524 28.1004 4.89961 26.2648 4.89961 24.0004L4.89961 14.7968Z",className:"invertedFill"})}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z",fill:"currentColor"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_1383_13",x:"0.74961",y:"0.750391",width:"30.5",height:"30.65",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_13"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.15"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_13",result:"effect2_dropShadow_1383_13"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_13",result:"shape"})]})})]})),CB=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 33 32"},e,{children:[(0,g.jsx)("g",{clipPath:"url(#clip0_1383_26)",children:(0,g.jsxs)("g",{filter:"url(#filter0_dd_1383_26)",children:[(0,g.jsx)("path",{d:"M11.0466 26.3997C10.7734 26.4017 10.5027 26.347 10.2518 26.2391C10.0008 26.1311 9.77495 25.9723 9.58848 25.7726L9.25923 25.4434L8.16174 26.3997H3.45263C3.3274 26.3997 3.26469 26.2483 3.35324 26.1598L6.65661 22.8564L6.32736 22.4645C6.1087 22.2662 5.93426 22.0242 5.8154 21.754C5.69654 21.4839 5.63592 21.1917 5.63751 20.8966C5.63676 20.6259 5.69209 20.358 5.80003 20.1097C5.90797 19.8615 6.06616 19.6383 6.26465 19.4542L20.8299 4.88891C21.0164 4.68923 21.2423 4.5304 21.4932 4.42246C21.7442 4.31451 22.0148 4.2598 22.288 4.26177C22.5589 4.26006 22.8271 4.31496 23.0755 4.42296C23.3239 4.53095 23.547 4.68966 23.7304 4.88891L27.07 8.35385C27.2679 8.54002 27.4256 8.76474 27.5333 9.01415C27.6411 9.26356 27.6968 9.53239 27.6968 9.8041C27.6968 10.0758 27.6411 10.3446 27.5333 10.5941C27.4256 10.8435 27.2679 11.0682 27.07 11.2544L12.5047 25.8196C12.3136 26.0101 12.0858 26.1597 11.8352 26.2594C11.5845 26.3591 11.3162 26.4069 11.0466 26.3997ZM7.04857 20.9907L11.0466 24.9887L18.1019 17.9334L14.1039 13.9511L7.04857 20.9907ZM15.2641 12.7908L19.2464 16.7732L26.2704 9.74923L22.288 5.7669L15.2641 12.7908Z",fill:"currentColor"}),(0,g.jsx)("path",{d:"M15.9785 17.9355L11.0466 22.8674L9.17107 20.9919L14.1048 16.0691L15.9785 17.9355ZM23.6736 3.04735C23.2367 2.85738 22.7651 2.76015 22.2887 2.76175C21.8115 2.75969 21.339 2.85593 20.9006 3.04451C20.468 3.23057 20.0778 3.50255 19.7537 3.84385L5.22113 18.3764C4.88174 18.6971 4.61069 19.0832 4.42443 19.5116C4.2347 19.948 4.13703 20.4188 4.13751 20.8946C4.13565 21.3984 4.23951 21.897 4.44243 22.3581C4.50154 22.4925 4.56867 22.6228 4.64335 22.7484L2.29258 25.0991L3.34995 26.1565L2.29257 25.0991C1.2591 26.1326 1.99102 27.8997 3.45263 27.8997H8.16174H8.72361L9.14721 27.5306L9.27257 27.4214C9.39694 27.4944 9.52602 27.5598 9.6591 27.617C10.0929 27.8036 10.5602 27.8998 11.0323 27.8998C11.4965 27.9087 11.958 27.8249 12.3897 27.6531C12.8292 27.4783 13.2285 27.216 13.5635 26.8821L13.5653 26.8803L28.1167 12.329C28.4548 12.0061 28.7247 11.6185 28.9103 11.1892C29.0993 10.7519 29.1968 10.2805 29.1968 9.8041C29.1968 9.3277 29.0993 8.85635 28.9103 8.41905C28.7268 7.99456 28.4609 7.61087 28.1281 7.29017L24.8206 3.8585C24.4981 3.51223 24.1077 3.23608 23.6736 3.04735L23.0755 4.42296L23.6736 3.04735ZM22.288 7.88822L24.149 9.74923L19.2464 14.6519L17.3854 12.7908L22.288 7.88822Z",className:"invertedStroke",strokeWidth:"3"})]})}),(0,g.jsxs)("defs",{children:[(0,g.jsxs)("filter",{id:"filter0_dd_1383_26",x:"-1.06201",y:"-0.10607",width:"33.1266",height:"32.2421",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.683895"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1383_26"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.36779"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.683895"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1383_26",result:"effect2_dropShadow_1383_26"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1383_26",result:"shape"})]}),(0,g.jsx)("clipPath",{id:"clip0_1383_26",children:(0,g.jsx)("rect",{width:"32",height:"32",fill:"white"})})]})]})),Cz=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 32 32"},e,{children:[(0,g.jsxs)("g",{filter:"url(#filter0_dd_92_29)",children:[(0,g.jsx)("path",{d:"M11 21H21V11H11V21ZM29 23C29 26.3137 26.3137 29 23 29H9C5.68629 29 3 26.3137 3 23V9C3 5.68629 5.68629 3 9 3H23C26.3137 3 29 5.68629 29 9V23Z",className:"invertedFill"}),(0,g.jsx)("path",{d:"M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z",fill:"currentColor"})]}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_92_29",x:"-1.17176",y:"-1.17176",width:"34.3435",height:"35.5153",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_92_29"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.17176"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.58588"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_92_29",result:"effect2_dropShadow_92_29"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_92_29",result:"shape"})]})})]})),CR=e=>(0,g.jsxs)(bA,Object.assign({viewBox:"0 0 32 33"},e,{children:[(0,g.jsx)("g",{filter:"url(#filter0_dd_1374_10)",children:(0,g.jsx)("path",{d:"M20.7271 2C21.4372 2 21.7114 2.00463 22.0841 2.03504C22.8228 2.0954 23.4839 2.25122 24.1592 2.59527C25.1865 3.1188 26.0219 3.9541 26.5458 4.98208C26.8896 5.65706 27.0454 6.31812 27.1057 7.05672C27.1301 7.35469 27.1379 7.58979 27.14 8.03558L27.1408 9.10155C27.1408 11.2114 25.4304 12.922 23.3205 12.922C21.4083 12.922 19.8243 11.5172 19.5441 9.68336L19.538 9.64H18.39V21.687L20.0392 21.6877C22.149 21.6877 23.8595 23.398 23.8595 25.508C23.8595 27.6178 22.149 29.3283 20.0392 29.3283H9.10159C6.99169 29.3283 5.28127 27.6178 5.28127 25.508C5.28127 23.398 6.99172 21.6877 9.10159 21.6877L10.75 21.687V9.64H9.601L9.59661 9.68334C9.32609 11.4539 7.84018 12.8246 6.01692 12.917L5.82032 12.922C3.71035 12.922 2 11.2114 2 9.10155V8.41371C2 7.70349 2.00463 7.42929 2.03504 7.05674C2.09538 6.31803 2.25122 5.65681 2.59521 4.98173C3.11877 3.95419 3.95418 3.11876 4.98174 2.5952C5.65683 2.25122 6.31798 2.09539 7.057 2.03501C7.42935 2.00463 7.70354 2 8.41371 2H20.7271Z",className:"invertedFill"})}),(0,g.jsx)("path",{d:"M8.41371 5H20.7271C21.1595 5 21.5325 5 21.8398 5.02507C22.1641 5.05157 22.4867 5.11007 22.7971 5.26822C23.2601 5.50416 23.6366 5.88064 23.8726 6.3437C24.0307 6.65409 24.0892 6.97666 24.1157 7.30097C24.1408 7.60823 24.1408 7.98127 24.1408 8.41369V9.10155C24.1408 9.55465 23.7735 9.92195 23.3205 9.92195C22.8674 9.92195 22.5001 9.55465 22.5001 9.10155V8.44533C22.5001 7.97237 22.4995 7.66699 22.4805 7.43457C22.4623 7.21172 22.4314 7.12909 22.4107 7.08853C22.3321 6.93418 22.2066 6.80869 22.0522 6.73004C22.0117 6.70938 21.9291 6.67847 21.7062 6.66026C21.4738 6.64127 21.1684 6.64063 20.6954 6.64063H15.3907V24.6877H20.0392C20.4922 24.6877 20.8595 25.0549 20.8595 25.508C20.8595 25.961 20.4922 26.3283 20.0392 26.3283H9.10159C8.64854 26.3283 8.28127 25.961 8.28127 25.508C8.28127 25.0549 8.64854 24.6877 9.10159 24.6877H13.7501V6.64063H8.44533C7.97238 6.64063 7.66699 6.64127 7.43457 6.66026C7.21172 6.67847 7.1291 6.70938 7.08854 6.73004C6.93418 6.80869 6.80869 6.93418 6.73004 7.08853C6.70938 7.12909 6.67847 7.21172 6.66026 7.43457C6.64127 7.66699 6.64063 7.97237 6.64063 8.44533V9.10155C6.64063 9.55465 6.27337 9.92195 5.82032 9.92195C5.36727 9.92195 5 9.55465 5 9.10155V8.41371C5 7.98128 5 7.60823 5.02508 7.30097C5.05157 6.97666 5.11007 6.65409 5.26823 6.3437C5.50417 5.88064 5.88064 5.50416 6.3437 5.26822C6.65409 5.11007 6.97666 5.05157 7.30097 5.02507C7.60824 5 7.98129 5 8.41371 5Z",fill:"currentColor"}),(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:"filter0_dd_1374_10",x:"0.85",y:"0.85",width:"27.4408",height:"30.7783",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0588235 0 0 0 0 0.0588235 0 0 0 0 0.0941176 0 0 0 0.12 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1374_10"}),(0,g.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,g.jsx)("feOffset",{dy:"1.15"}),(0,g.jsx)("feGaussianBlur",{stdDeviation:"0.575"}),(0,g.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,g.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.054902 0 0 0 0 0.054902 0 0 0 0 0.203922 0 0 0 0.16 0"}),(0,g.jsx)("feBlend",{mode:"normal",in2:"effect1_dropShadow_1374_10",result:"effect2_dropShadow_1374_10"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1374_10",result:"shape"})]})})]})),CY="3.3em",CG=h.I4.button(nj(),CY,CY,uA("annotationMenuTriggerIconColor"),e=>{let{$plusStrokeColor:t}=e;return t||uA("grey100")},uA("grey100"),e=>{let{$isOpen:t,$isHovered:n,$isSticky:r}=e;return"scale(".concat(t?"100%":n||r?"75%":"50%",")")}),CW=h.I4.div(nA(),e=>{let{$isOpen:t}=e;return t?"rotate(45deg)":"rotate(0deg)"}),CU=(0,O.forwardRef)((e,t)=>{let{isOpen:n,plusStrokeColor:r,isSticky:i,isHovered:o}=e,{canUserInteractWithAddon:l}=bc();return l("annotationMenuAddon")?(0,g.jsx)(ey.l9,{asChild:!0,children:(0,g.jsx)(CG,{ref:t,$isOpen:n,$plusStrokeColor:r,$isSticky:i,$isHovered:o,children:(0,g.jsx)(CW,{$isOpen:n,children:(0,g.jsx)(b_,{size:"lg"})})})}):null});CU.displayName="AnnotationsMenuTrigger";let CN=()=>{let{hitboxes:e}=yb();return(0,O.useMemo)(()=>e.flatMap(e=>e.dataPoints.filter(e=>yv(e)||yC(e))),[e])},CK=e=>e.map(yg).join(CZ),CZ="#separator#",CX=h.I4.div(nw()),C_=(0,h.I4)(ey.q7)(nk(),hK(1),hK(.5),sV.md,uA("grey80"),uA("grey80")),CQ=h.I4.div(nS()),CJ=h.I4.span(nP(),mX),Cq=h.I4.div(nL()),C$=h.I4.div(nM(),uA("alert")),C1=()=>(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{opacity:"0.12",d:"M13.5948 4.29016C13.8724 6.22367 12.5301 8.01618 10.5966 8.29384C8.66309 8.57151 6.87058 7.22918 6.59292 5.29567C6.31525 3.36216 7.65758 1.56965 9.59109 1.29198C11.5246 1.01432 13.3171 2.35665 13.5948 4.29016Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71886 3.51052C6.25611 1.3626 8.43287 0.0568985 10.5808 0.594151C12.7287 1.1314 14.0344 3.30817 13.4972 5.45609C13.0316 7.31748 11.3347 8.54637 9.49237 8.49145L7.50898 12.492C7.46485 12.581 7.40179 12.6548 7.32702 12.7108C7.20005 12.8073 7.03703 12.8532 6.87248 12.8303C6.80957 12.822 6.74697 12.8038 6.68687 12.7749C6.39369 12.6342 6.26689 12.2915 6.3923 11.9963L7.63393 7.97371C6.10249 7.10872 5.27136 5.29962 5.71886 3.51052ZM10.2785 1.80253C8.79799 1.4322 7.29756 2.33222 6.92723 3.81277C6.55691 5.29332 7.45692 6.79375 8.93747 7.16408C10.418 7.5344 11.9185 6.63439 12.2888 5.15384C12.6591 3.67329 11.7591 2.17285 10.2785 1.80253Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M5.42977 11.1572C5.70072 11.104 5.8772 10.8411 5.82393 10.5702C5.77067 10.2992 5.50784 10.1227 5.23688 10.176C4.31848 10.3565 3.57421 10.6423 3.04695 11.0266C2.51409 11.4149 2.16666 11.936 2.16666 12.557C2.16666 13.0322 2.41215 13.4327 2.74425 13.7433C3.07553 14.0531 3.52776 14.3091 4.04484 14.5137C5.08193 14.9239 6.48048 15.1666 7.99999 15.1666C9.5195 15.1666 10.9181 14.9239 11.9551 14.5137C12.4722 14.3091 12.9244 14.0531 13.2557 13.7433C13.5878 13.4327 13.8333 13.0322 13.8333 12.557C13.8333 11.936 13.4859 11.4149 12.953 11.0266C12.4258 10.6423 11.6815 10.3565 10.7631 10.176C10.4921 10.1227 10.2293 10.2992 10.176 10.5702C10.1228 10.8411 10.2993 11.104 10.5702 11.1572C11.4079 11.3219 11.997 11.5672 12.364 11.8347C12.7255 12.0981 12.8333 12.3496 12.8333 12.557C12.8333 12.6643 12.7803 12.8187 12.5727 13.013C12.3642 13.2079 12.0354 13.4065 11.5873 13.5838C10.6941 13.9371 9.426 14.1666 7.99999 14.1666C6.57398 14.1666 5.30586 13.9371 4.41267 13.5838C3.9646 13.4065 3.63578 13.2079 3.4273 13.013C3.21964 12.8187 3.16666 12.6643 3.16666 12.557C3.16666 12.3496 3.2745 12.0981 3.63595 11.8347C4.00299 11.5672 4.59206 11.3219 5.42977 11.1572Z",fill:"currentColor",fillOpacity:"0.8"})]}),C0=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M2.333 3h11.334v8.667c-2 0-4 .333-5.667 2.333-2-2-3.667-2.333-5.667-2.333z",opacity:".12"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",fillRule:"evenodd",d:"M3.325 3.156a.836.836 0 0 0-.836.836v6.832c0 .462.375.836.836.836h2.131a.5.5 0 0 1 .352.145L8 13.975l2.193-2.17a.5.5 0 0 1 .352-.145h2.13a.84.84 0 0 0 .836-.836V3.992a.84.84 0 0 0-.836-.836zm-1.836.836c0-1.014.822-1.836 1.836-1.836h9.35c1.015 0 1.836.825 1.836 1.836v6.832a1.84 1.84 0 0 1-1.836 1.836H10.75l-2.398 2.374a.5.5 0 0 1-.704 0L5.25 12.66H3.325a1.836 1.836 0 0 1-1.836-1.836z",clipRule:"evenodd"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",fillRule:"evenodd",d:"M8 4.505a.5.5 0 0 1 .5.5v2.172h2.171a.5.5 0 0 1 0 1H8.5v2.171a.5.5 0 0 1-1 0V8.177H5.329a.5.5 0 0 1 0-1H7.5V5.005a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]}),C2=()=>(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{opacity:"0.12",d:"M15 4.66667L12.3333 2L2.33334 12L5.00001 14.6667L15 4.66667Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M5.01683 15.3331C4.84407 15.3343 4.67292 15.2997 4.51421 15.2314C4.3555 15.1632 4.21268 15.0627 4.09476 14.9365L3.88656 14.7283L3.62877 14.8968L3.19253 15.3331H0L2.24072 13.0923L2.03251 12.8445C1.89423 12.7191 1.78392 12.566 1.70875 12.3952C1.63359 12.2244 1.59526 12.0396 1.59626 11.853C1.59579 11.6818 1.63078 11.5124 1.69904 11.3554C1.76729 11.1984 1.86733 11.0573 1.99285 10.9409L11.2036 1.73012C11.3215 1.60384 11.4643 1.5034 11.623 1.43514C11.7817 1.36688 11.9529 1.33228 12.1257 1.33353C12.2969 1.33245 12.4665 1.36716 12.6236 1.43546C12.7807 1.50375 12.9218 1.60412 13.0378 1.73012L15.1496 3.92126C15.2748 4.03899 15.3745 4.1811 15.4427 4.33882C15.5108 4.49654 15.546 4.66655 15.546 4.83837C15.546 5.01019 15.5108 5.1802 15.4427 5.33792C15.3745 5.49564 15.2748 5.63774 15.1496 5.75548L5.93889 14.9662C5.81806 15.0866 5.67403 15.1812 5.51552 15.2443C5.35702 15.3074 5.18736 15.3376 5.01683 15.3331ZM2.48858 11.9125L5.01683 14.4407L9.47843 9.97913L6.95019 7.4608L2.48858 11.9125ZM7.68388 6.72712L10.2022 9.24544L14.644 4.80367L12.1257 2.28534L7.68388 6.72712Z",fill:"currentColor",fillOpacity:"0.8"})]}),C5=()=>(0,g.jsxs)(Cq,{role:"img",children:[(0,g.jsx)(C2,{}),(0,g.jsx)(C$,{})]}),C3=()=>(0,g.jsx)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M14.0146 5.20703C14.2118 5.40459 14.2121 5.72447 14.0146 5.92187L12.3291 7.6084C12.2343 7.70313 12.1047 7.75579 11.9707 7.75586C11.8369 7.75573 11.708 7.70291 11.6133 7.6084L9.92773 5.92187C9.73024 5.72438 9.73031 5.40457 9.92773 5.20703C10.1253 5.0095 10.445 5.0095 10.6426 5.20703L11.4658 6.03027L11.4658 1.68652L7.75586 1.68652L7.75586 12.6455C7.75563 12.9246 7.5291 13.1512 7.25 13.1514L2.5293 13.1514C2.2501 13.1514 2.02367 12.9247 2.02344 12.6455L2.02344 5.00781C0.868958 4.77348 0.000106647 3.7528 -1.10559e-07 2.5293C-4.95071e-08 1.13259 1.13261 9.74645e-05 2.5293 -5.23256e-07C3.92588 0.000220668 5.05859 1.13267 5.05859 2.5293C5.05849 3.75251 4.1892 4.77219 3.03516 5.00684L3.03516 12.1396L6.74414 12.1396L6.74414 1.18066C6.74414 0.901394 6.97076 0.674939 7.25 0.674804L11.9707 0.674805C12.2499 0.674939 12.4766 0.901394 12.4766 1.18066L12.4766 6.03027L13.2998 5.20703C13.4973 5.0095 13.8171 5.0095 14.0146 5.20703ZM4.04687 2.5293C4.04687 1.69137 3.36717 1.01194 2.5293 1.01172C1.69132 1.01182 1.01172 1.6913 1.01172 2.5293C1.01184 3.36719 1.6914 4.04678 2.5293 4.04687C3.36709 4.04665 4.04675 3.36712 4.04687 2.5293ZM14.5 11.2969C14.4998 12.6935 13.3673 13.8262 11.9707 13.8262C10.5742 13.826 9.4416 12.6934 9.44141 11.2969C9.44141 9.90018 10.574 8.7677 11.9707 8.76758C13.3675 8.76758 14.5 9.90011 14.5 11.2969ZM13.4883 11.2969C13.4883 10.4588 12.8088 9.7793 11.9707 9.7793C11.1327 9.77942 10.4531 10.4589 10.4531 11.2969C10.4533 12.1347 11.1329 12.8143 11.9707 12.8145C12.8086 12.8145 13.4881 12.1348 13.4883 11.2969Z",fill:"currentColor",fillOpacity:"0.8"})}),C7=()=>(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{opacity:"0.12",d:"M1.33334 8.00016C1.33334 4.31826 4.31811 1.3335 8.00001 1.3335C11.6819 1.3335 14.6667 4.31826 14.6667 8.00016C14.6667 11.6821 11.6819 14.6668 8.00001 14.6668C4.31811 14.6668 1.33334 11.6821 1.33334 8.00016Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M5.7328 9.69963C5.56696 9.47884 5.25352 9.43429 5.03273 9.60013C4.81193 9.76598 4.76739 10.0794 4.93323 10.3002C5.63175 11.2302 6.74548 11.8333 7.99993 11.8333C9.25438 11.8333 10.3681 11.2302 11.0666 10.3002C11.2325 10.0794 11.1879 9.76598 10.9671 9.60013C10.7463 9.43429 10.4329 9.47884 10.2671 9.69963C9.74929 10.3889 8.92657 10.8333 7.99993 10.8333C7.07329 10.8333 6.25057 10.3889 5.7328 9.69963Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M6.66668 6.66658C6.66668 7.03478 6.3682 7.33325 6.00001 7.33325C5.63182 7.33325 5.33334 7.03478 5.33334 6.66658C5.33334 6.29839 5.63182 5.99992 6.00001 5.99992C6.3682 5.99992 6.66668 6.29839 6.66668 6.66658Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M10 7.33325C10.3682 7.33325 10.6667 7.03478 10.6667 6.66658C10.6667 6.29839 10.3682 5.99992 10 5.99992C9.63182 5.99992 9.33334 6.29839 9.33334 6.66658C9.33334 7.03478 9.63182 7.33325 10 7.33325Z",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 0.833252C4.04197 0.833252 0.833344 4.04188 0.833344 7.99992C0.833344 11.958 4.04197 15.1666 8.00001 15.1666C11.9581 15.1666 15.1667 11.958 15.1667 7.99992C15.1667 4.04188 11.9581 0.833252 8.00001 0.833252ZM14.1667 7.99992C14.1667 11.4057 11.4058 14.1666 8.00001 14.1666C4.59425 14.1666 1.83334 11.4057 1.83334 7.99992C1.83334 4.59416 4.59425 1.83325 8.00001 1.83325C11.4058 1.83325 14.1667 4.59416 14.1667 7.99992Z",fill:"currentColor",fillOpacity:"0.8"})]}),C9=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:"0.3",rx:".533"})]}),C4=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:".8",rx:".533"})]}),C6=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3.2",height:"7.704",y:"8.296",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"4.741",x:"8.533",y:"11.259",fill:"currentColor",fillOpacity:"0.3",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"11.259",x:"4.267",y:"4.741",fill:"currentColor",fillOpacity:"0.8",rx:".533"}),(0,g.jsx)("rect",{width:"3.2",height:"16",x:"12.8",fill:"currentColor",fillOpacity:"0.3",rx:".533"})]}),C8=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),ve=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),vt=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.445a.52.52 0 0 1-.519.518H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"})]}),vn=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 8 0)"}),(0,g.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,g.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,g.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 16 13)"})]}),vr=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 8 0)"}),(0,g.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,g.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,g.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:".8",rx:".533",transform:"rotate(90 16 13)"})]}),vi=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3",height:"8",x:"8",fill:"currentColor",fillOpacity:".8",rx:".533",transform:"rotate(90 8 0)"}),(0,g.jsx)("rect",{width:"3",height:"5",x:"5",y:"9",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 5 9)"}),(0,g.jsx)("rect",{width:"3",height:"12",x:"12",y:"4",fill:"currentColor",rx:".533",transform:"rotate(90 12 4)"}),(0,g.jsx)("rect",{width:"3",height:"16",x:"16",y:"13",fill:"currentColor",fillOpacity:"0.3",rx:".533",transform:"rotate(90 16 13)"})]}),vo=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M2.963 0v4.267H.518A.52.52 0 0 1 0 3.748V.518C0 .233.232 0 .518 0zM8.963 0c.286 0 .518.232.518.519v3.23a.52.52 0 0 1-.518.518H3.556V0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M8.296 5.867v4.266H.518A.52.52 0 0 1 0 9.615v-3.23c0-.286.232-.518.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M8.889 5.867v4.266h3.037a.52.52 0 0 0 .518-.518v-3.23a.52.52 0 0 0-.518-.518zM5.926 11.733V16H.519A.52.52 0 0 1 0 15.482v-3.23c0-.287.232-.519.519-.519zM6.519 11.733V16h8.962a.52.52 0 0 0 .519-.518v-3.23a.52.52 0 0 0-.519-.519z"})]}),vl=()=>(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M2.96289 6.99382e-07L2.96289 4.26667L0.518483 4.26667C0.232113 4.26667 -3.52239e-05 4.03452 -3.52114e-05 3.74815L-3.50702e-05 0.518519C-3.50577e-05 0.23215 0.232114 5.80016e-07 0.518483 5.92534e-07L2.96289 6.99382e-07Z",fill:"black",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M8.96293 6.76717e-07C9.2493 6.89235e-07 9.48145 0.232149 9.48145 0.518519L9.48145 3.74815C9.48145 4.03452 9.2493 4.26667 8.96293 4.26667L3.55559 4.26667L3.55559 4.40355e-07L8.96293 6.76717e-07Z",fill:"currentColor",fillOpacity:"0.3"}),(0,g.jsx)("path",{d:"M8.29614 5.8667L8.29614 10.1334L0.518469 10.1334C0.232099 10.1334 -4.88137e-05 9.90122 -4.88012e-05 9.61485L-4.86601e-05 6.38522C-4.86475e-05 6.09885 0.2321 5.8667 0.51847 5.8667L8.29614 5.8667Z",fill:"black",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M8.88892 5.8667L8.88892 10.1334L11.9259 10.1334C12.2123 10.1334 12.4444 9.90122 12.4444 9.61485L12.4444 6.38522C12.4444 6.09885 12.2123 5.8667 11.9259 5.8667L8.88892 5.8667Z",fill:"currentColor",fillOpacity:"0.3"}),(0,g.jsx)("path",{d:"M5.92603 11.7334L5.92603 16.0001L0.518692 16.0001C0.232322 16.0001 0.000173869 15.7679 0.000173882 15.4815L0.000174023 12.2519C0.000174035 11.9655 0.232323 11.7334 0.518692 11.7334L5.92603 11.7334Z",fill:"black",fillOpacity:"0.8"}),(0,g.jsx)("path",{d:"M6.51855 11.7334L6.51855 16.0001L15.4814 16.0001C15.7678 16.0001 15.9999 15.7679 15.9999 15.4815L15.9999 12.2519C15.9999 11.9655 15.7678 11.7334 15.4814 11.7334L6.51855 11.7334Z",fill:"currentColor",fillOpacity:"0.3"})]}),va=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M2.963 0v4.267H.518A.52.52 0 0 1 0 3.748V.518C0 .233.232 0 .518 0zM8.963 0c.286 0 .518.232.518.519v3.23a.52.52 0 0 1-.518.518H3.556V0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M8.296 5.867v4.266H.518A.52.52 0 0 1 0 9.615v-3.23c0-.286.232-.518.518-.518zM8.889 5.867v4.266h3.037a.52.52 0 0 0 .518-.518v-3.23a.52.52 0 0 0-.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.926 11.733V16H.519A.52.52 0 0 1 0 15.482v-3.23c0-.287.232-.519.519-.519zM6.519 11.733V16h8.962a.52.52 0 0 0 .519-.518v-3.23a.52.52 0 0 0-.519-.519z"})]}),vs=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"16",height:"16",fill:"currentColor",fillOpacity:"0.3",rx:"8"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.8",d:"m7.999 16 .412-.01A8 8 0 0 0 8 0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.6",d:"M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"})]}),vu=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M8 0a8 8 0 1 1-.001 16A8 8 0 0 1 8 0m.111 3.916a4.195 4.195 0 1 0 0 8.39 4.195 4.195 0 0 0 0-8.39"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.8",d:"M8 0a8 8 0 0 1 .411 15.99L8 15.998v-3.695c.038 0 .075.004.113.004a4.196 4.196 0 1 0-.113-8.39z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.1",d:"M16 8a8 8 0 0 1-7.589 7.99L8 15.998v-3.695c.038 0 .075.004.113.004a4.196 4.196 0 0 0 4.195-4.197L12.304 8z"})]}),vc=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"16",fill:"none",viewBox:"0 0 20 16",children:[(0,g.jsx)("path",{stroke:"currentColor",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:".993",d:"M1.5 12 6 6.5l4 3.5 4-5.5"}),(0,g.jsx)("circle",{cx:"1.493",cy:"11.993",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("circle",{cx:"5.993",cy:"6.493",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("circle",{cx:"9.993",cy:"9.993",r:".993",fill:"currentColor",fillOpacity:"0.8"}),(0,g.jsx)("circle",{cx:"13.993",cy:"4.493",r:".993",fill:"currentColor",fillOpacity:"0.8"})]}),vd=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:".8",strokeWidth:"1.163",d:"m-1.618 15.96 9.118-5.3 11 2.34"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.6",stroke:"currentColor",strokeOpacity:"0.3",d:"M8 13a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,g.jsx)("rect",{width:"9.795",height:"6",x:"3",y:"2",fill:"currentColor",fillOpacity:"0.3",rx:"1.513"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"})]}),vp=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.267v2.444a.52.52 0 0 1-.519.519H.518A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.407H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.867 7.704h4.266v7.778a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 10.074H16v5.407a.52.52 0 0 1-.518.519h-3.23a.52.52 0 0 1-.519-.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"}),(0,g.jsx)("path",{stroke:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"m.774 7.611 5.924-3.434 4.121 2.004L15 3"}),(0,g.jsx)("ellipse",{cx:"14.5",cy:"3",fill:"currentColor",rx:"1.5",ry:"1.667"})]}),vh=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 13.037h4.26v2.444a.52.52 0 0 1-.518.519H.52A.52.52 0 0 1 0 15.482zM0 7.037c0-.286.232-.518.519-.518h3.223c.287 0 .519.232.519.518v5.407H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.859 7.704h4.26v7.778a.52.52 0 0 1-.518.518H6.377a.52.52 0 0 1-.518-.518zM5.859 7.111h4.26V4.074a.52.52 0 0 0-.518-.518H6.377a.52.52 0 0 0-.518.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.717 10.074h4.261v5.407a.52.52 0 0 1-.518.519h-3.224a.52.52 0 0 1-.519-.519zM11.717 9.481h4.261V.52A.52.52 0 0 0 15.46 0h-3.224a.52.52 0 0 0-.519.519z"}),(0,g.jsx)("path",{stroke:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"M.772 7.611 6.69 4.177l4.115 2.003 4.887-3.148"})]}),vg=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:[(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M0 13.037h4.26v2.444a.52.52 0 0 1-.518.519H.52A.52.52 0 0 1 0 15.482z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M0 7.037c0-.286.232-.518.519-.518h3.223c.287 0 .519.232.519.518v5.407H0z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M5.859 7.704h4.26v7.778a.52.52 0 0 1-.518.518H6.377a.52.52 0 0 1-.518-.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M5.859 7.111h4.26V4.074a.52.52 0 0 0-.518-.518H6.377a.52.52 0 0 0-.518.518z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:".8",d:"M11.717 10.074h4.261v5.407a.52.52 0 0 1-.518.519h-3.224a.52.52 0 0 1-.519-.519z"}),(0,g.jsx)("path",{fill:"currentColor",fillOpacity:"0.3",d:"M11.717 9.481h4.261V.52A.52.52 0 0 0 15.46 0h-3.224a.52.52 0 0 0-.519.519z"}),(0,g.jsx)("path",{stroke:"#333",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.133",d:"M.772 7.611 6.69 4.177l4.115 2.003 4.887-3.148"})]}),vf=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,g.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vm=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:".8",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,g.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vy=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"4.22",height:"3.556",y:"12.445",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.667",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"10.074",x:"5.802",y:"5.926",fill:"currentColor",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"4.148",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 5.802 4.148)"}),(0,g.jsx)("rect",{width:"4.22",height:"6.518",x:"11.78",y:"9.481",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"4.22",height:"7.704",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 11.604 7.704)"})]}),vx=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"3.2",height:"6.518",y:"9.482",fill:"currentColor",fillOpacity:"0.3",rx:".519"}),(0,g.jsx)("rect",{width:"3.2",height:"4.741",fill:"currentColor",fillOpacity:".8",rx:".519",transform:"matrix(1 0 0 -1 8.533 4.741)"}),(0,g.jsx)("rect",{width:"3.2",height:"6.518",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 4.267 11.26)"}),(0,g.jsx)("rect",{width:"3.2",height:"15.999",fill:"currentColor",fillOpacity:"0.3",rx:".519",transform:"matrix(1 0 0 -1 12.8 16)"})]}),vb=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("path",{fill:"#e5e5e5",d:"M6.4 3.84 3.467 0H.533v16H15.2l.8-.64V9.28l-.8-1.6h-2.667l-3.2-3.84z"}),(0,g.jsx)("rect",{width:"4.267",height:"8.32",fill:"currentColor",fillOpacity:"0.3",rx:".52",transform:"matrix(-1 0 0 1 16 7.68)"}),(0,g.jsx)("rect",{width:"4.267",height:"12.16",fill:"currentColor",fillOpacity:".8",rx:".52",transform:"matrix(-1 0 0 1 10.133 3.84)"}),(0,g.jsx)("rect",{width:"4.267",height:"16",fill:"currentColor",fillOpacity:"0.3",rx:".52",transform:"matrix(-1 0 0 1 4.267 0)"})]}),vC=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 3.598 7.215)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 6.681 11.327)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 9.251 7.215)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 10.28 2.59)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 13.877 6.187)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 15.933 .533)"})]}),vv=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 2.056 12.869)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 3.598 7.215)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 6.681 11.327)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 9.251 7.215)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:".8",rx:"1.028",transform:"matrix(-1 0 0 1 10.28 2.59)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 13.877 6.187)"}),(0,g.jsx)("rect",{width:"2.056",height:"2.056",fill:"currentColor",fillOpacity:"0.3",rx:"1.028",transform:"matrix(-1 0 0 1 15.933 .533)"})]}),vj=()=>(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[(0,g.jsx)("rect",{width:"1.933",height:"1.933",fill:"currentColor",fillOpacity:"0.3",rx:".967",transform:"matrix(-1 0 0 1 1.933 13.133)"}),(0,g.jsx)("rect",{width:"1.933",height:"1.933",fill:"currentColor",fillOpacity:"0.3",rx:".967",transform:"matrix(-1 0 0 1 1.933 13.133)"}),(0,g.jsx)("rect",{width:"2.9",height:"2.9",fill:"currentColor",fillOpacity:"0.3",rx:"1.45",transform:"matrix(-1 0 0 1 4.35 6.85)"}),(0,g.jsx)("rect",{width:"1.45",height:"1.45",fill:"currentColor",fillOpacity:"0.3",rx:".725",transform:"matrix(-1 0 0 1 5.8 11.683)"}),(0,g.jsx)("rect",{width:"3.383",height:"3.383",fill:"currentColor",fillOpacity:"0.3",rx:"1.692",transform:"matrix(-1 0 0 1 10.15 7.817)"}),(0,g.jsx)("rect",{width:"3.867",height:"3.867",fill:"currentColor",rx:"1.933",transform:"matrix(-1 0 0 1 9.666 1.533)"}),(0,g.jsx)("rect",{width:"3.383",height:"3.383",fill:"currentColor",fillOpacity:"0.3",rx:"1.692",transform:"matrix(-1 0 0 1 14.5 6.85)"}),(0,g.jsx)("rect",{width:"2.9",height:"2.9",fill:"currentColor",fillOpacity:"0.3",rx:"1.45",transform:"matrix(-1 0 0 1 15.467 1.533)"})]}),vA=e=>{switch(e){case"bar":return{"data-point":vn,series:vr,"x-value":vi};case"column":return{"data-point":C9,series:C4,"x-value":C6};case"barStacked":case"barStackedFill":return{"data-point":vo,series:vl,"x-value":va};case"columnStacked":case"columnStackedFill":return{"data-point":C8,series:ve,"x-value":vt};case"line":case"areaStacked":return{"data-point":vd,series:vc};case"combo":return{"data-point":vp,series:vg,"x-value":vh};case"pie":return{"x-value":vs};case"donut":return{"x-value":vu};case"funnel":return{"data-point":vb};case"waterfall":return{bar:vx};case"mekko":return{"data-point":vf,series:vy,"x-value":vm};case"scatter":return{"data-point":vC,series:vv};case"bubble":return{"data-point":vj};default:throw Error("Unsupported visualization type: ".concat(e))}},vw=e=>{var t,n;let r=gz(e=>e.computedConfig.type),i=(()=>{let e=CN();return(0,O.useCallback)(t=>{let n=CK(t.groupValues),r=e.filter(e=>CK(e.groupValues)===n),i=r.findIndex(e=>e.id===t.id);return -1===i?null:i===r.length-1?r[i-1]:r[i+1]},[e])})(),o=t=>n=>{n.preventDefault(),e.setActiveSubMenu(t)};return(0,g.jsxs)(CX,{children:[(0,g.jsxs)(C_,{onClick:()=>{let{propertyKey:t,rowIndex:n}=pp(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:n,rowValue:e.getRowCategoricalValue(n),config:{type:"tooltip"}}),e.setActiveSubMenu(null)},children:[(0,g.jsx)(C1,{}),(0,g.jsx)(CJ,{children:"Pin number"})]}),(0,g.jsxs)(C_,{onClick:o("text"),children:[(0,g.jsx)(C0,{}),(0,g.jsx)(CJ,{children:"Annotate"}),(0,g.jsx)(CQ,{children:(0,g.jsx)(Ch,{size:"xs",variant:"muted"})})]}),1===e.highlightOptions.length&&(0,g.jsxs)(C_,{onClick:()=>{var t;let n=null==(t=e.highlightOptions[0])?void 0:t.annotation;if(!n)return;let{propertyKey:r,rowIndex:i}=pp(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:r,rowIndex:i,rowValue:e.getRowCategoricalValue(i),config:n}),e.setActiveSubMenu(null)},children:[vk(r,null==(t=e.highlightOptions[0])?void 0:t.annotation.highlight),(0,g.jsxs)(CJ,{children:["Highlight ",null==(n=e.highlightOptions[0])?void 0:n.label]})]}),e.highlightOptions.length>1&&(0,g.jsxs)(C_,{onClick:o("highlight"),children:[(0,g.jsx)(C2,{}),(0,g.jsx)(CJ,{children:"Highlight"}),(0,g.jsx)(CQ,{children:(0,g.jsx)(Ch,{size:"xs",variant:"muted"})})]}),e.onRemoveHighlight&&(0,g.jsxs)(C_,{onClick:t=>{var n;t.preventDefault(),null==(n=e.onRemoveHighlight)||n.call(e,e.dataPoint)},children:[(0,g.jsx)(C5,{}),(0,g.jsx)(CJ,{children:"Remove highlight"})]}),yA(e.dataPoint)&&(0,g.jsxs)(C_,{onClick:()=>{if(!yA(e.dataPoint))return;let t=pp(e.dataPoint.id),n=i(e.dataPoint);n&&(e.onAnnotate({id:crypto.randomUUID(),propertyKey:t.propertyKey,rowIndex:t.rowIndex,rowValue:e.getRowCategoricalValue(t.rowIndex),config:{type:"difference-arrow",start:t,end:pp(n.id),attributes:{type:"relative-difference",color:null,size:"small"}}}),e.setActiveSubMenu(null))},children:[(0,g.jsx)(C3,{}),(0,g.jsx)(CJ,{children:"Difference arrow"})]}),(0,g.jsxs)(C_,{onClick:o("sticker"),children:[(0,g.jsx)(C7,{}),(0,g.jsx)(CJ,{children:"Add sticker"}),(0,g.jsx)(CQ,{children:(0,g.jsx)(Ch,{size:"xs",variant:"muted"})})]})]})},vk=(e,t)=>{if(!t)return null;let n=vA(e),r=null==n?void 0:n[t];return r?(0,g.jsx)(r,{}):null},vS=h.I4.ul(nO(),hK(.25)),vP=h.I4.span(nT(),mX);function vL(e){e.preventDefault(),e.stopPropagation()}let vM={onClick:vL,onClickCapture:vL,onKeyDownCapture:vL,onKeyUpCapture:vL,onMouseDownCapture:vL,onMouseUpCapture:vL,onPointerDownCapture:vL,onPointerUpCapture:vL,onTouchEndCapture:vL,onTouchStartCapture:vL},vO={sm:3,md:4,lg:5},vT={sm:.5,md:1,lg:2,xl:3.5},vD={sm:.5,md:1,lg:1.5},vI={primary:{backgroundColor:"grey0",backgroundColorHovered:e=>uw(e,.9),color:"grey100",colorHovered:"grey95",iconColor:"grey95",iconColorSelected:"grey95"},secondary:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"grey90",backgroundColorSelected:"grey80",borderColor:"grey70",borderColorDisabled:"grey70",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},secondaryStrong:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"grey90",backgroundColorSelected:"grey80",borderColor:e=>"dark"===e?"grey70":"grey60",borderColorDisabled:"grey70",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},subtle:{backgroundColor:"transparent",backgroundColorHovered:"grey80",backgroundColorDisabled:"transparent",backgroundColorSelected:"grey60",borderColor:"transparent",borderColorDisabled:"transparent",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},marketing:{backgroundColor:"amber40",backgroundColorHovered:"amber30",color:"black",iconColor:"black"},alternative:{backgroundColor:"transparent",backgroundColorHovered:"grey70",backgroundColorDisabled:"transparent",backgroundColorSelected:"grey60",borderColor:"transparent",borderColorDisabled:"transparent",color:"textPrimary",colorSelected:"textPrimary",iconColor:"textSecondary",iconColorSelected:"textPrimary"},standout:{backgroundColor:"blue80",backgroundColorHovered:"blue60",backgroundColorDisabled:"transparent",backgroundColorSelected:"blue60",borderColor:"transparent",borderColorDisabled:"transparent",color:"white",colorSelected:"white",iconColor:"white",iconColorSelected:"white"}},vE=h.I4.span(nD(),sG.subtle),vH=h.I4.span(nI(),e=>{let{$wrap:t}=e;return!t&&hq},sG.subtle),vV=h.I4.div(nE()),vF=(0,h.i7)(nH()),vB=h.I4.div(nV()),vz=h.I4.button(nB(),hY,e=>{var t,n;let{$alignment:r,disabled:i,$isLoading:o,$isSelected:l,$shouldFitContainer:a,$theme:s,$variant:u,$hasAnimatedBorder:c,$horizontalPadding:d,$verticalPadding:p,$radii:g="md"}=e,f=vI[u],m=vR(Object.assign(Object.assign({},e),{scheme:f})),y=uA(m),x=i||l?m:f.backgroundColorHovered,b="string"==typeof x?uA(x):x(y),C=sV[g],v=function(e){let{disabled:t,$isLoading:n}=e;return n?"default":t?"not-allowed":"pointer"}(e),j=vD[p],A=vT[d],w=vO[p]-2*j,k=a?"100%":"auto",S=vY(Object.assign(Object.assign({},e),{theme:s,scheme:f})),P=l&&f.colorSelected?f.colorSelected:f.color,L=l&&f.iconColorSelected?f.iconColorSelected:null!=(t=f.iconColor)?t:f.color,M=l&&f.iconColorSelected?f.iconColorSelected:null!=(n=f.colorHovered)?n:f.color;return(0,h.AH)(nF(),k,C,v,sB("linear-gradient(116.21deg, #44D2E9 10.82%, #D94CF8 62.26%, #50C8EA 113.17%)",1,"md"),vF,c?"block":"none",vB,y,C,S,uA(P),"center"===r?"center":"start","center"===r?"center":"flex-start",hK(j),hK(A),sG.subtle,sG.subtle,k,i?.5:1,vH,mX,hK(w),vB,b,vE,uA(M),vB,b,vB,hK(),vB,o&&"opacity: 0",vE,uA(L))}),vR=e=>{let{disabled:t,scheme:n,$isSelected:r}=e;return t&&n.backgroundColorDisabled?n.backgroundColorDisabled:r&&n.backgroundColorSelected?n.backgroundColorSelected:n.backgroundColor},vY=e=>{let{disabled:t,theme:n,scheme:r}=e,{values:i,colorScheme:o}=n;return t&&r.borderColorDisabled?uA(r.borderColorDisabled):r.borderColor?uA("string"==typeof r.borderColor?r.borderColor:r.borderColor(o)):i.transparent},vG=O.forwardRef((e,t)=>{var{alignment:n="center",wrap:r=!1,children:i,iconAfter:o,iconBefore:l,isDisabled:a=!1,isLoading:s=!1,isSelected:u=!1,shouldFitContainer:c=!1,hasAnimatedBorder:d=!1,horizontalPadding:p="md",verticalPadding:h="md",variant:f="primary",radii:m}=e,y=s$(e,["alignment","wrap","children","iconAfter","iconBefore","isDisabled","isLoading","isSelected","shouldFitContainer","hasAnimatedBorder","horizontalPadding","verticalPadding","variant","radii"]);let x=ma(),b=a||s;return(0,g.jsx)(vz,Object.assign({$theme:x,$alignment:n,disabled:b,$isLoading:s,$isSelected:u,ref:t,$shouldFitContainer:c,$variant:f,$hasAnimatedBorder:d,$horizontalPadding:p,$verticalPadding:h,$radii:m},y,b?vM:{},{children:(0,g.jsxs)(vB,{children:[l&&(0,g.jsx)(vE,{children:l}),i&&(0,g.jsx)(vH,{$wrap:r,children:i}),o&&(0,g.jsx)(vE,{children:o}),s&&(0,g.jsx)(vV,{children:(0,g.jsx)(bP,{variant:"currentColor"})})]})}))}),vW=h.I4.div(nz(),hY,hK(1)),vU=h.I4.div(nR(),hK(.25),hK(3)),vN=h.I4.span(nY(),mq,uA("textSecondary")),vK=(0,h.I4)(vG)(nG(),hK(-.5),hK(3),hK(3)),vZ=e=>{let{onBack:t,title:n,children:r}=e;return(0,O.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(e.preventDefault(),t())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t]),(0,g.jsxs)(vW,{children:[(0,g.jsxs)(vU,{children:[(0,g.jsx)(vK,{variant:"subtle",horizontalPadding:"sm",verticalPadding:"sm",onClick:e=>{e.preventDefault(),t()},iconBefore:(0,g.jsx)(Cp,{size:"sm"})}),(0,g.jsx)(vN,{children:n})]}),r]})},vX=e=>{let t=vA(gz(e=>e.computedConfig.type));return(0,g.jsx)(vZ,{title:"Highlight",onBack:()=>e.setActiveSubMenu(null),children:(0,g.jsx)(vS,{children:e.options.map(n=>{var r;let i=t[n.annotation.highlight];return i?(0,g.jsxs)(C_,{onClick:(r=n.annotation,()=>{let{propertyKey:t,rowIndex:n}=pp(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:n,rowValue:e.getRowCategoricalValue(n),config:r})}),children:[(0,g.jsx)(i,{}),(0,g.jsx)(vP,{children:n.label})]},n.annotation.highlight):null})})})},v_=h.I4.ul(nW()),vQ=h.I4.li(nU()),vJ=h.I4.button(nN(),sV.sm,hK(.5),uA("grey80")),vq=e=>{let t=Object.entries(e.stickers);return(0,g.jsx)(vZ,{title:"Add sticker",onBack:()=>e.setActiveSubMenu(null),children:(0,g.jsx)(v_,{children:t.map(t=>{let[n,r]=t;return(0,g.jsx)(vQ,{children:(0,g.jsx)(vJ,{onClick:()=>{let{propertyKey:t,rowIndex:r}=pp(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:t,rowIndex:r,rowValue:e.getRowCategoricalValue(r),config:{type:"sticker",id:n}})},children:r})},n)})})})},v$={backgroundColor:"grey80",backgroundColorDisabled:"grey80",borderColor:"grey70",borderColorHovered:"grey70",borderColorFocused:"grey60",borderColorDisabled:"grey70",borderColorError:"alert",color:"textPrimary",colorDisabled:"textPrimary"},v1=Object.assign(Object.assign({},v$),{backgroundColor:"transparent",backgroundColorDisabled:"transparent"}),v0=Object.assign(Object.assign({},v$),{backgroundColor:"transparent",backgroundColorDisabled:"transparent",borderColor:"grey0",borderColorFocused:"grey0",borderColorHovered:"grey0",color:"grey0",placeholderColor:"textSecondary"}),v2={default:v$,subtle:Object.assign(Object.assign({},v$),{backgroundColor:"transparent",borderColorHovered:"transparent",backgroundColorDisabled:"transparent",borderColor:"transparent",borderColorFocused:"transparent",borderColorDisabled:"transparent",borderColorError:"alert"}),alternative:{backgroundColor:"grey90",backgroundColorDisabled:"grey90",borderColor:"grey90",borderColorHovered:"grey90",borderColorFocused:"grey80",borderColorDisabled:"grey90",borderColorError:"alert",color:"textPrimary",colorDisabled:"textPrimary"},secondary:v1,grey0:v0,grey80:Object.assign(Object.assign({},v$),{backgroundColor:"grey80",backgroundColorDisabled:"grey90",borderColor:"grey80",borderColorFocused:"grey80",borderColorHovered:"grey80",color:"textPrimary",placeholderColor:"textSecondary"})},v5=function(){let{isDisabled:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,h.AH)(nZ(),e&&(0,h.AH)(nK()))},v3=function(){let{variant:e="default",isDisabled:t,isFocused:n,hasError:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=v2[e],o=r?i.borderColorError:i.borderColorFocused,l=r?i.borderColorError:i.borderColorHovered;return(0,h.AH)(n_(),uA(t?i.borderColorDisabled:r?i.borderColorError:i.borderColor),sV.md,uA(t?i.backgroundColorDisabled:i.backgroundColor),uA(l),uA(o),n&&(0,h.AH)(nX(),uA(o)))},v7=function(){let{variant:e="default",isDisabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=v2[e];return(0,h.AH)(nJ(),mX,uA(t?n.colorDisabled:n.color),n.placeholderColor&&(0,h.AH)(nQ(),uA(n.placeholderColor)))},v9=h.I4.div(nq(),hY),v4=(0,h.I4)(eA.p)(n1(),e=>{let{$isDisabled:t}=e;return v5({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return(0,h.AH)(n$(),v3({variant:n,hasError:t,isFocused:r}),v7({variant:n}))},hK(.6),hK(1),uA("textPrimary"));h.I4.div(n0(),hK(.5));let v6=h.I4.div(n2(),hK(1),sJ.toolbar,hK(.5),uA("overlayBackground"),sV.lg,sN.modern,sB(uA("overlayBorderGradient"),1,"lg")),v8=h.I4.div(n5(),hK(.25),hK(.75),uA("grey60")),je=(0,O.forwardRef)((e,t)=>{var{children:n}=e,r=s$(e,["children"]);return(0,g.jsx)(v6,Object.assign({role:"toolbar",ref:t},r,{children:(0,g.jsx)(ex.Bc,{children:n})}))});je.displayName="Toolbar";let jt={sm:16,md:32},jn=(0,h.i7)(n3()),jr=h.I4.div(n4(),e=>{let{$width:t,$isInstant:n}=e,r=hK(),i=hK(.5),o=jt[t];return(0,h.AH)(n9(),uA("grey100"),sF.sm,sV.md,i,r,o,uA("textPrimary"),sJ.tooltip,!n&&(0,h.AH)(n7(),jn,sG.subtle))}),ji=h.I4.svg(n6(),uA("grey100")),jo=h.I4.div(n8(),mX,sd.bold),jl=h.I4.div(re(),mq),ja=e=>{var{children:t,helperText:n,label:r,width:i="md",side:o,sideOffset:l=8,align:a,alignOffset:s,delayDuration:u=300,isDisabled:c=!1,isOpen:d,onOpenChange:p,textAlign:f,className:m,hasInvertedTheme:y=!0,disableHoverableContent:x=!0,container:b}=e,C=s$(e,["children","helperText","label","width","side","sideOffset","align","alignOffset","delayDuration","isDisabled","isOpen","onOpenChange","textAlign","className","hasInvertedTheme","disableHoverableContent","container"]);let v=ma(),j=ba();if(c)return(0,g.jsx)(g.Fragment,{children:t});let A=y?"dark"===v.colorScheme?h4:h3:v;return(0,g.jsxs)(ex.bL,{delayDuration:u,open:d,onOpenChange:p,disableHoverableContent:x,children:[(0,g.jsx)(ex.l9,{asChild:!0,children:t}),(0,g.jsx)(md,{container:null==j?void 0:j.container,id:"tooltip-portal",zIndex:sJ.tooltip,children:(0,g.jsx)(h.NP,{theme:A,children:(0,g.jsxs)(jr,Object.assign({as:ex.UC,$width:i,$isInstant:0===u,side:o,sideOffset:l,align:a,alignOffset:s,className:m,style:{textAlign:f}},C,{children:[(0,g.jsx)(ji,{as:ex.i3}),(0,g.jsx)(jo,{children:r}),n&&(0,g.jsx)(jl,{children:n})]}))})})]})},js=(0,h.I4)(ja)(rt(),sJ.hint),ju=e=>(0,g.jsx)(js,Object.assign({isOpen:!0},e)),jc=h.I4.div(rn(),hY),jd=(0,O.forwardRef)((e,t)=>{var n,r;let{anchorElement:i,isOpen:o=!1,placement:l="top",offset:a=[4,0],zIndex:s=sJ.popover,isWithinPortal:u=!1,children:c}=e,d=(0,O.useRef)(null),[p,h]=(0,O.useState)({x:0,y:0}),[f,m]=(0,O.useState)("absolute"),[y,x]=(0,O.useState)(l),b=g3([t,d]);if((0,O.useEffect)(()=>{if(i&&d.current&&o&&1)return(0,eL.ll)(i,d.current,()=>{(0,eL.rD)(i,d.current,{placement:l,middleware:[(0,eM.cY)({mainAxis:a[0],crossAxis:a[1]}),(0,eM.UU)(),(0,eM.BN)()]}).then(e=>{let{x:t,y:n,strategy:r,placement:i}=e;h({x:t,y:n}),m(r),x(i)})})},[i,o,l,a]),!o)return null;let C=null!==p.x&&null!==p.y,v=C?p.y:0,j=C?p.x:0,A=(0,g.jsx)(jc,{ref:b,style:{position:f,top:v,left:j,zIndex:s,visibility:C?"visible":"hidden"},children:"function"==typeof c?c({x:null!=(n=p.x)?n:0,y:null!=(r=p.y)?r:0,strategy:f,placement:y}):c});return u&&"undefined"!=typeof document?(0,g.jsx)(md,{zIndex:s,children:A}):A});jd.displayName="Popper";let jp={default:{backgroundColor:"overlayBackground",borderGradient:"overlayBorderGradient",elevation:"lg"},grey80:{backgroundColor:"grey80",elevation:"lg"},secondary:{borderColor:"grey70",backgroundColor:"grey90",elevation:"lg"},subtle:{backgroundColor:"transparent",elevation:"none"}},jh=h.I4.div(ri(),e=>{let{$variant:t}=e,n=jp[t];return(0,h.AH)(rr(),uA(n.backgroundColor),sV.lg,sF[n.elevation],n.borderColor?uA(n.borderColor):"transparent",n.borderGradient?sB(uA(n.borderGradient),1,"lg"):"")}),jg=(0,O.forwardRef)(function(e,t){let{isOpen:n=!1,children:r,anchorElement:i,offset:o=[0,4],placement:l="bottom",onClose:a,label:s,isWithinPortal:u=!1,variant:c="default"}=e,[d,p]=(0,O.useState)(null);return(0,O.useEffect)(()=>{if(!a||!n)return;let e=e=>{if(!(d&&i&&e.target instanceof Node))return;let t=d.contains(e.target),n=i instanceof Element&&i.contains(e.target);t||n||a()};return window.addEventListener("mousedown",e),()=>window.removeEventListener("mousedown",e)},[i,a,d,n]),(0,g.jsx)(jd,{ref:t,anchorElement:i,isOpen:n,placement:l,offset:o,isWithinPortal:u,zIndex:sJ.popover,children:(0,g.jsx)(jh,{$variant:c,ref:p,role:"dialog","aria-label":s,children:r})})});h.I4.div(ro());let jf=(0,h.I4)(eO.bL)(rl()),jm=(0,h.I4)(eO.CC)(ra(),uA("grey50")),jy=(0,h.I4)(eO.Q6)(rs(),uA("grey0")),jx=(0,h.I4)(eO.zi)(ru(),uA("grey0"),sF.sm),jb=e=>(0,g.jsxs)(jf,Object.assign({},e,{children:[(0,g.jsx)(jm,{children:(0,g.jsx)(jy,{})}),(0,g.jsx)(jx,{})]})),jC=e=>"--graphy-default-annotation-".concat((0,m.A)(e)),jv=e=>"var(".concat(jC(e),")"),jj="--graphy-first-canvas-color",jA="var(".concat(jj,")"),jw=h.I4.div(rc(),e=>e.$values.map(e=>{let{name:t,value:n}=e;return"".concat(t,": ").concat(n,";")}).join("\n")),jk=e=>{var t;let{children:n}=e,r=gz(e=>e.theme.canvasColors),i=gz(e=>e.theme.defaultAnnotationColorIds),o=gz(e=>e.canvasColorToVariableName),l=r.map(e=>({name:"--".concat(o(e.id)),value:e.value})),a=null==(t=r[0])?void 0:t.id;return l.push({name:jj,value:a?"var(--".concat(o(a),")"):uA("textPrimary")}),Object.values(yu.keyof().Values).forEach(e=>{l.push({name:jC(e),value:((e,t)=>t?"var(--".concat(e(t),", ").concat(jA,")"):jA)(o,i[e])})}),(0,g.jsx)(jw,{$values:l,children:n})},jS=h.I4.svg(rd(),e=>{let{$variant:t}=e;return"neon"===t?"none":uA("grey85")}),jP={sm:hN(1.875),lg:hN(2.5)},jL=e=>{let{palette:t,variant:n="default",maxColors:r=3,size:i="sm"}=e,o=(0,O.useId)(),l=Math.min(Math.max(t.length,1),r,4),a=jP[i],s=a+(l-1)*(a-5),u=a/2,c=[...new Set(t)];return(0,g.jsxs)(jS,{width:s,height:a,$variant:n,children:["neon"===n&&(0,g.jsx)("defs",{children:(0,g.jsx)("filter",{id:o,x:-50,y:-50,width:200,height:200,filterUnits:"userSpaceOnUse",children:(0,g.jsx)("feGaussianBlur",{stdDeviation:"2"})})}),c.slice(0,l).reverse().map((e,t)=>{let r=s-a/2-t*(a-5);return(0,g.jsxs)("g",{children:["neon"===n&&(0,g.jsx)("circle",{cx:r,cy:u,r:a/2,fill:e,filter:"url(#".concat(o,")")}),(0,g.jsx)("circle",{cx:r,cy:u,r:a/2,fill:e})]},t)})]})},jM=h.I4.div(rh(),hY,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v3({variant:n,hasError:t,isFocused:r})},hK(1),hK(.6),hK(1),uA("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,h.AH)(rp())}),jO=h.I4.div(rg(),hY,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v3({variant:n,hasError:t,isFocused:r})},hK(.6),hK(1)),jT=h.I4.input(rm(),e=>{let{$isDisabled:t}=e;return v5({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v7({variant:n})},uA("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,h.AH)(rf())});h.I4.div(ry(),uA("grey70"));let jD=h.I4.span(rx(),mX),jI=h.I4.div(rb(),hK(1)),jE=(0,h.I4)(eb.h)(rC(),sV.md,uA("grey90")),jH=(0,h.I4)(eC.t)(rv()),jV=(0,h.I4)(ev.hB)(rj(),sV.sm,uA("grey90")),jF=(0,h.I4)(ej.a)(rA(),uA("white"),sF.sm),jB=h.I4.div(rw(),hY,sJ.popover,uA("grey100"),sV.md,sF.md,uA("grey90"),uA("textPrimary")),jz=h.I4.div(rk(),hK(1),hK(1.5)),jR=h.I4.div(rS(),mq,uA("textPrimary")),jY=e=>{let{label:t,value:n,onChange:r,hasError:i,variant:o="default",isDisabled:l=!1,isWithinPortal:a=!0,popoverContentProps:s}=e,[u,c]=(0,O.useState)(!1),d=a?eT.ZL:O.Fragment;return(0,g.jsxs)(eT.bL,{open:u,onOpenChange:e=>{l||c(e)},children:[(0,g.jsx)(eT.l9,{asChild:!0,children:(0,g.jsxs)(jM,{role:l?"":"button",tabIndex:l?-1:0,$hasError:i,$variant:o,$isFocused:u,$isDisabled:l,children:[n&&(0,g.jsx)(jL,{palette:[n],maxColors:1}),(0,g.jsx)(jD,{children:null!=t?t:n})]})}),(0,g.jsx)(d,{children:(0,g.jsx)(mu,{children:(0,g.jsx)(jB,Object.assign({as:eT.UC,align:"center",side:"bottom",sideOffset:hN(.5)},s,{children:(0,g.jsxs)(jz,{children:[(0,g.jsx)(jR,{children:"Pick color"}),(0,g.jsx)("div",{children:u&&(0,g.jsx)(jG,{initialValue:n,onChange:r,onEnterPress:()=>{c(!1)}})})]})}))})})]})},jG=e=>{let{initialValue:t,onChange:n,onEnterPress:r}=e,[i,o]=(0,O.useState)((0,ew.H0)(null!=t?t:"#af9af7").toFormat("hsb")),[l,a]=(0,O.useState)((0,ew.H0)(null!=t?t:"#af9af7").toString("hex"));return(0,g.jsx)(ek.sk,{value:i,onChange:e=>{o(e),a(e.toString("hex")),n(e.toString("hex"))},children:(0,g.jsxs)(jI,{children:[(0,g.jsx)(jE,{colorSpace:"hsb",xChannel:"saturation",yChannel:"brightness",children:(0,g.jsx)(jF,{})}),(0,g.jsx)(jH,{colorSpace:"hsb",channel:"hue",children:(0,g.jsx)(jV,{children:(0,g.jsx)(jF,{})})}),(0,g.jsx)(jO,{children:(0,g.jsx)(jT,{placeholder:"#000000",value:l,onChange:e=>{a(e.target.value);try{let t=e.target.value.trim();t.startsWith("#")||(t="#".concat(t));let r=(0,ew.H0)(t);o(r),n(r.toString("hex"))}catch(e){}},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r())},onKeyDownCapture:e=>{"Backspace"===e.key&&e.stopPropagation()},autoFocus:!0})})]})})},jW=h.I4.div(rP(),e=>{let{$isSelected:t}=e;return t?"3px solid ".concat(uA("grey60")):"none"}),jU=(0,h.I4)(jW)(rL(),e=>{let{$colorOption:t}=e;return t},e=>{let{$borderColor:t}=e;return t}),jN=(0,h.I4)(jW)(rM(),m3(1.4,void 0,.15),uA("grey60"));h.I4.div(rO(),hK(1));let jK=h.I4.div(rT(),mq,uA("textSecondary")),jZ=h.I4.div(rD()),jX=h.I4.div(rI()),j_=h.I4.div(rE()),jQ=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,jJ=(e,t)=>"var(--".concat(t(e),")"),jq=e=>{var t;let{seriesColorOptions:n,value:r,tooltip:i,onChange:o,renderIcon:l,getSwatchStyles:a,showTransparentOption:s,showOpacitySlider:u,opacityValue:c,onOpacityChange:d}=e,p=gz(e=>e.theme.canvasColors),h=gz(e=>e.canvasColorToVariableName),[f,m]=(0,O.useState)(!1),[y,x]=(0,O.useState)(null),[b,C]=(0,O.useState)(null);r=null!=r?r:null==(t=p[0])?void 0:t.value;let v=(e,t)=>{null==o||o(e),t&&m(!1)},j=(0,O.useMemo)(()=>e=>a?a(e):ph(e),[a]),A=(0,O.useMemo)(()=>j(r),[j,r]),w=p.find(e=>jJ(e.id,h)===r),k=jQ.test(r)?r:w&&jQ.test(w.value)?w.value:void 0;return(0,g.jsxs)(jk,{children:[(0,g.jsx)(jg,{anchorElement:y,isOpen:f,placement:"bottom-start",offset:[0,8],children:(0,g.jsxs)(jK,{ref:C,children:[(0,g.jsx)("h4",{children:"Colors"}),(0,g.jsxs)(jZ,{children:[p.map(e=>{var t;let n=j(e.value);return(0,g.jsx)(ja,{label:e.label,children:(0,g.jsx)(vG,{variant:"subtle",onMouseDown:t=>{t.preventDefault(),v(jJ(e.id,h),!0)},iconBefore:(0,g.jsx)(jU,{$borderColor:n.borderColor,$colorOption:n.fillColor,$isSelected:r===e.value})})},null!=(t=e.id)?t:e.value)}),s&&(0,g.jsx)(ja,{label:"Transparent",children:(0,g.jsx)(vG,{variant:"subtle",onMouseDown:e=>{e.preventDefault(),v("transparent",!0)},iconBefore:(0,g.jsx)(jN,{$isSelected:"transparent"===r})})})]}),(null==n?void 0:n.length)?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h4",{children:"Chart colors"}),(0,g.jsx)(jZ,{children:n.map(e=>{let t=j(e.value);return(0,g.jsx)(ja,{label:e.label,children:(0,g.jsx)(vG,{variant:"subtle",onMouseDown:t=>{t.preventDefault(),v(e.value,!0)},iconBefore:(0,g.jsx)(jU,{$borderColor:t.borderColor,$colorOption:t.fillColor,$isSelected:r===e.value})})},e.label)})})]}):null,(0,g.jsx)("h4",{children:"Custom"}),(0,g.jsx)(jX,{children:(0,g.jsx)(jY,{isWithinPortal:!1,onChange:e=>v(e,!1),value:k,popoverContentProps:{side:"right",align:"start",sideOffset:16,onInteractOutside:e=>{(null==b?void 0:b.contains(e.target))||e.preventDefault()}}})}),u&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h4",{children:"Opacity"}),(0,g.jsx)(j_,{children:(0,g.jsx)(jb,{min:0,max:1,step:.01,value:[null!=c?c:0],onValueChange:e=>{let[t]=e;return"number"==typeof t&&(null==d?void 0:d(t))}})})]})]})}),(0,g.jsx)(ja,{label:i,hasInvertedTheme:!1,children:(0,g.jsx)(vG,{ref:x,onMouseDown:e=>{e.preventDefault(),m(!f)},variant:"subtle",iconBefore:l?l(r):"transparent"===r?(0,g.jsx)(jN,{}):(0,g.jsx)(jU,{$borderColor:A.borderColor,$colorOption:A.fillColor})})})]})},j$=e=>{let{as:t,children:n,isDisabled:r=!1,shouldReturnFocus:i=!0}=e;return(0,g.jsx)(eD.Ay,{as:t,disabled:r,returnFocus:i,autoFocus:!1,children:n})},j1=(0,O.createContext)({descendants:[],availableDescendants:[],registerDescendant:()=>{},unregisterDescendant:()=>{}}),j0=()=>(0,O.useContext)(j1),j2=e=>{let{children:t}=e,[n,r]=(0,O.useState)([]),i=(0,O.useCallback)(e=>{var{element:t,index:n}=e,i=s$(e,["element","index"]);r(e=>e.find(e=>e.element===t&&e.index===n)?e:[...e,Object.assign(Object.assign({},i),{element:t})].map((e,t)=>Object.assign(Object.assign({},e),{index:t})))},[]),o=(0,O.useCallback)(e=>{r(t=>t.filter(t=>e!==t.element))},[]),l=(0,O.useMemo)(()=>n.filter(e=>{let{isDisabled:t}=e;return!t}),[n]),a=(0,O.useMemo)(()=>({descendants:n,availableDescendants:l,registerDescendant:i,unregisterDescendant:o}),[n,l,i,o]);return(0,g.jsx)(j1.Provider,{value:a,children:t})};function j5(e,t){return"".concat(e,"-option-").concat(t)}let j3=O.createContext(null),j7=()=>{var e;let t=(0,O.useContext)(j3);return null!=(e=null==t?void 0:t.appearance)?e:"default"},j9=e=>{let{appearance:t="default",children:n}=e,r=(0,O.useMemo)(()=>({appearance:t}),[t]);return(0,g.jsx)(j3.Provider,{value:r,children:n})},j4=(0,O.createContext)(null),j6=()=>{let e=(0,O.useContext)(j4);if(null===e)throw Error("Make sure MenuNavigationProvider is present in the react tree.");return e},j8=e=>{let{children:t,id:n,onItemSelect:r}=e,i=(0,O.useId)(),o=(0,O.useMemo)(()=>n||i,[n,i]),[l,a]=(0,O.useState)(-1),[s,u]=(0,O.useState)(!1),c=(0,O.useCallback)(()=>a(-1),[a]),d=(0,O.useMemo)(()=>({selectionIndex:l,moveSelectionIndex:a,clearSelectionIndex:c,menuId:o,shouldDisableMouseEvents:s,setDisableMouseEvents:u,onItemSelect:r}),[l,c,o,s,r]);return(0,g.jsx)(j4.Provider,{value:d,children:t})},Ae=e=>{let{children:t}=e;return t},At=(0,O.forwardRef)(function(e,t){let{"aria-label":n,children:r,numCols:i=1,isKeyboardNavigationEnabled:o,renderInner:l=Ae,onKeyPressAtEdge:a,role:s="menu"}=e,{selectionIndex:u,moveSelectionIndex:c,menuId:d,setDisableMouseEvents:p}=j6(),{descendants:h,availableDescendants:f}=j0(),{hasFocus:m,focusBindings:y}=gK({onBlur:()=>{c(-1)}}),x=-1===u?void 0:j5(d,u),b=(0,O.useCallback)(e=>{p(!0);let t=f.findIndex(e=>{let{index:t}=e;return t===u}),n=(e=>{let{direction:t,numCols:n,currentIndex:r,maxIndex:i}=e;switch(t){case"ArrowDown":return Math.min(r+n,i);case"ArrowLeft":return r%n==0?r:Math.max(r-1,0);case"ArrowRight":return r%n==n-1?r:Math.min(r+1,i);case"ArrowUp":{let e=r-n;return e<0?r:e}}})({direction:e,numCols:i,maxIndex:h.length-1,currentIndex:t}),r=f[n];if(r){let e=pg(r.element);hF(r.element,e)||r.element.scrollIntoView({block:"nearest",inline:"nearest"}),c(r.index)}n===u&&(null==a||a(e))},[p,f,h.length,i,u,c,a]),C=(0,O.useCallback)(e=>{var t;if(["Enter","Tab"].includes(e.key)){let t=h[u];if(!t)return;return e.preventDefault(),void t.onSelect()}return"input"!==(null==(t=document.activeElement)?void 0:t.tagName)&&["ArrowLeft","ArrowRight"].includes(e.key)||["ArrowUp","ArrowDown"].includes(e.key)?(e.preventDefault(),void b(e.key)):void 0},[u,h,b]),v=m||o;return(0,O.useEffect)(()=>{if(v)return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}},[v,C]),(0,g.jsx)("div",Object.assign({id:d,"aria-activedescendant":x,"aria-label":n,role:s,ref:t},y,{tabIndex:-1,children:l({children:r})}))}),An=(0,O.forwardRef)(function(e,t){let{"aria-label":n,children:r,id:i,numCols:o,isKeyboardNavigationEnabled:l,onKeyPressAtEdge:a,renderInner:s,role:u,onItemSelect:c,appearance:d}=e;return(0,g.jsx)(j2,{children:(0,g.jsx)(j8,{id:i,onItemSelect:c,children:(0,g.jsx)(j9,{appearance:d,children:(0,g.jsx)(At,{ref:t,role:u,"aria-label":n,numCols:o,renderInner:s,isKeyboardNavigationEnabled:l,onKeyPressAtEdge:a,children:r})})})})}),Ar=h.I4.div(rH(),hK(),hK()),Ai=h.I4.div(rV(),mq,uA("textSecondary"),hK(),hK()),Ao=e=>{let{children:t,title:n}=e;return(0,g.jsxs)(Ar,{children:[(0,g.jsx)(Ai,{children:n}),t]})},Al={sm:hK(.75),md:hK(1.25)},Aa={default:"textPrimary",disabled:"textDisabled",selected:"textPrimary",highlighted:"textPrimary"},As={default:"textPrimary",disabled:"textDisabled",selected:"textPrimary",highlighted:"textPrimary"},Au={default:{default:"transparent",disabled:"transparent",selected:"grey60",highlighted:"grey70"},popover:{default:"transparent",disabled:"transparent",selected:"grey60",highlighted:"grey70"},filled:{default:"grey70",disabled:"grey80",selected:"grey50",highlighted:"grey60"}},Ac=h.I4.div(rF(),e=>{let{$shouldFillSpace:t}=e;return+!!t},e=>{let{$shouldFillSpace:t}=e;return+!!t},uA("textPrimary")),Ad=(0,h.I4)(Ac)(rz(),uA("textSecondary"),e=>{let{$hasEmphasis:t}=e;return t&&(0,h.AH)(rB(),uA("grey80"),hK(.5),hK(-.5),sV.md)}),Ap=(0,h.I4)(Ac)(rR(),hK(),hK(-1),hK(-1)),Ah=h.I4.div(rY(),e=>{let{$variant:t}=e;return"bold"===t?m_:mX},hq),Ag=h.I4.div(rG(),mq,uA("textSecondary")),Af=h.I4.div(rN(),e=>{let{$state:t,$appearance:n}=e;return uA(Au[n][t])},sV.lg,e=>{let{$gap:t}=e;return Al[t]},hK(1),hK(),e=>{let{$state:t}=e;return(0,h.AH)(rU(),Ad,uA(Aa[t]),Ah,uA(As[t]),"selected"!==t&&"disabled"!==t&&(0,h.AH)(rW(),Ad,uA(Aa.highlighted),Ah,uA(As.highlighted)))}),Am=h.I4.div(rZ(),hY,e=>{let{$hasSpacing:t}=e;return t?"".concat(hK(.25)," 0"):"0"},e=>{let{$isClickable:t,$isDisabled:n}=e;return n?"not-allowed":t?"pointer":"inherit"},e=>{let{$hasHoverState:t,$isSelected:n,$appearance:r}=e;return t&&!n&&(0,h.AH)(rK(),Af,uA(Au[r].highlighted))}),Ay=(0,O.forwardRef)((e,t)=>{var{children:n,isInteractive:r=!1,isHighlighted:i=!1,isDisabled:o=!1,isSelected:l=!1,hasSpacing:a=!0,gap:s="sm",appearance:u}=e,c=s$(e,["children","isInteractive","isHighlighted","isDisabled","isSelected","hasSpacing","gap","appearance"]);let d="default";o?d="disabled":l?d="selected":i&&(d="highlighted");let p=j7(),h=u||p;return(0,g.jsx)(Am,Object.assign({ref:t,$hasHoverState:r&&!o,$isSelected:l,$isClickable:(r||!!c.onClick)&&!o,$isDisabled:o,$hasSpacing:a,$appearance:h},c,{children:(0,g.jsx)(Af,{$state:d,$appearance:h,$gap:s,children:n})}))}),Ax=e=>{let{shouldFillSpace:t=!1,button:n}=e;return(0,g.jsx)(Ap,{$shouldFillSpace:t,children:n})},Ab=e=>{var{icon:t,hasEmphasis:n=!1}=e,r=s$(e,["icon","hasEmphasis"]);return(0,g.jsx)(Ad,Object.assign({$hasEmphasis:n},r,{children:t}))},AC=e=>{let{shouldFillSpace:t=!1,input:n}=e;return(0,g.jsx)(Ap,{$shouldFillSpace:t,children:n})},Av=e=>{let{shouldFillSpace:t=!1,children:n}=e;return(0,g.jsx)(Ac,{$shouldFillSpace:t,children:n})},Aj=e=>{var{shouldFillSpace:t=!0,label:n,description:r,variant:i="default"}=e,o=s$(e,["shouldFillSpace","label","description","variant"]);return(0,g.jsxs)(Ac,Object.assign({$shouldFillSpace:t},o,{children:[(0,g.jsx)(Ah,{title:"string"==typeof n?n:"",$variant:i,children:n}),(0,g.jsx)(Ag,{children:r})]}))},AA={sm:hK(1),md:hK(1.25)},Aw=h.I4.span(rX(),e=>{let{$variant:t}=e;return m5[t]}),Ak=h.I4.div(r_(),e=>{let{width:t}=e;return t}),AS=h.I4.div(rJ(),e=>{let{$variant:t,$lastLineWidth:n}=e;return(0,h.AH)(rQ(),sZ[t],hW,sK[t],sV.md,n)}),AP=h.I4.div(rq());h.I4.div(r$(),AP,Aw,Aw,AP,e=>{let{size:t}=e;return AA[t]});let AL=e=>{var{numLines:t=1,variant:n="body",lineWidth:r="33%"}=e,i=s$(e,["numLines","variant","lineWidth"]);let o=t>1,l=o?r:"100%";return(0,g.jsx)(Ak,Object.assign({width:o?"100%":r,"aria-hidden":!0},i,{children:Array(t).fill("").map((e,t)=>(0,g.jsx)(AS,{$variant:n,$lastLineWidth:l},t))}))},AM=e=>{let{shouldFillSpace:t=!0,hasDescription:n,lineWidth:r="40%"}=e;return(0,g.jsx)(Aj,{shouldFillSpace:t,label:(0,g.jsx)(AL,{lineWidth:r}),description:n?(0,g.jsx)(AL,{variant:"caption",lineWidth:"70%"}):void 0})},AO=(0,h.I4)(Ac)(r1(),hK(1),hK(1),hK(.5)),AT=h.I4.div(r0(),mq,hq,uA("textSecondary")),AD=h.I4.div(r2(),hK(-1),hK(-1.5)),AI=e=>{let{title:t,control:n}=e;return(0,g.jsxs)(AO,{$shouldFillSpace:!0,children:[(0,g.jsx)(AT,{children:t}),(0,g.jsx)(AD,{children:n})]})},AE="titleSmaller",AH=h.I4.span(r5(),m5[AE]),AV=e=>{let{buttonBefore:t,buttonAfter:n,iconBefore:r,contentAfter:i,children:o,hasSpacing:l}=e;return(0,g.jsxs)(Ay,{hasSpacing:l,children:[t&&(0,g.jsx)(Ax,{button:t}),r&&(0,g.jsx)(Ab,{icon:r}),(0,g.jsx)(Av,{shouldFillSpace:!0,children:(0,g.jsx)(AH,{children:o})}),n&&(0,g.jsx)(Ax,{button:n}),i&&(0,g.jsx)(Av,{children:i})]})},AF=e=>{let{element:t,isDisabled:n,onSelect:r}=e,i=function(){let[,e]=(0,O.useState)(Object.create(null));return(0,O.useCallback)(()=>{e(Object.create(null))},[])}(),{registerDescendant:o,unregisterDescendant:l,descendants:a}=(0,O.useContext)(j1),s=a.findIndex(e=>e.element===t),u=g9(a),c=a.some((e,t)=>{var n;return e.element!==(null==(n=null==u?void 0:u[t])?void 0:n.element)});return(0,O.useLayoutEffect)(()=>{t||i()},[t,i]),(0,O.useLayoutEffect)(()=>(t&&o({element:t,index:s,isDisabled:n,onSelect:r}),()=>{t&&l(t)}),[s,o,c,l,t,r,n]),s},AB=function(){let{isActive:e,isSelected:t,isDisabled:n,onSelect:r,onMouseEnter:i,onMouseLeave:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onItemSelect:l,selectionIndex:a,moveSelectionIndex:s,clearSelectionIndex:u,menuId:c,setDisableMouseEvents:d,shouldDisableMouseEvents:p}=j6(),h=(0,O.useRef)(null),g=(0,O.useCallback)(e=>{n||(null==l||l(),null==r||r(),null==e||e.stopPropagation())},[r,l,n]),f=AF({isDisabled:n,element:h.current,onSelect:g});(0,O.useEffect)(()=>{t&&-1===a&&s(f)},[t,f,s,a]);let m=(0,O.useCallback)(e=>{n||p||(s(f),null==i||i(e))},[f,s,i,n,p]),y=(0,O.useCallback)(e=>{p||(u(),null==o||o(e))},[u,o,p]),x=(0,O.useCallback)(()=>{!n&&p&&(d(!1),s(f))},[n,f,s,d,p]),b=!!(e||-1!==a&&f===a&&!n);return{ownRef:h,menuItemId:j5(c,f),isHighlighted:b,handleSelect:g,handleMouseEnter:m,handleMouseLeave:y,handleMouseMove:x}},Az=e=>{var{onClick:t}=e,n=s$(e,["onClick"]);let{menuItemId:r,ownRef:i,handleSelect:o,handleMouseEnter:l,handleMouseLeave:a,handleMouseMove:s}=AB({onSelect:t});return(0,g.jsx)(vG,Object.assign({},n,{ref:i,id:r,onClick:o,onMouseEnter:l,onMouseLeave:a,onMouseMove:s}))},AR=()=>(0,g.jsx)(Ay,{children:(0,g.jsx)(Av,{shouldFillSpace:!0,children:(0,g.jsx)(AL,{variant:AE})})}),AY=h.I4.div(r3(),hq,uA("textSecondary")),AG=h.I4.div(r7(),uA("grey70"),hK(.5),hK(1)),AW=O.forwardRef((e,t)=>{var{appearance:n,iconBefore:r,iconAfter:i,textAfter:o,buttonAfter:l,description:a,children:s,"aria-label":u,isActive:c,isDisabled:d,isSelected:p,onMouseEnter:h,onMouseLeave:f,onSelect:m,role:y="menuitem",shouldAutoHideDescription:x=!1}=e,b=s$(e,["appearance","iconBefore","iconAfter","textAfter","buttonAfter","description","children","aria-label","isActive","isDisabled","isSelected","onMouseEnter","onMouseLeave","onSelect","role","shouldAutoHideDescription"]);let{menuItemId:C,isHighlighted:v,ownRef:j,handleSelect:A,handleMouseEnter:w,handleMouseLeave:k,handleMouseMove:S}=AB({onSelect:m,onMouseEnter:h,onMouseLeave:f,isActive:c,isDisabled:d,isSelected:p}),P=!x||v;return(0,g.jsxs)(Ay,Object.assign({appearance:n,hasSpacing:!1,"aria-label":u,"aria-disabled":d||void 0,isHighlighted:v,isDisabled:d,"aria-selected":!!p,onClick:A,onMouseEnter:w,onMouseLeave:k,onMouseMove:S,id:C,ref:g3([j,t]),role:y},b,{children:[r&&(0,g.jsx)(Ab,{icon:r}),(0,g.jsx)(Aj,{label:s,description:P?a:void 0}),o&&(0,g.jsx)(Av,{children:(0,g.jsx)(AY,{children:o})}),i&&(0,g.jsx)(Ab,{icon:i}),l&&v&&(0,g.jsx)(Ax,{button:l})]}))}),AU=()=>(0,g.jsx)(AG,{}),AN=e=>{let{hasDescription:t}=e;return(0,g.jsx)(Ay,{children:(0,g.jsx)(AM,{hasDescription:t})})},AK={sm:{width:"16em",maxHeight:"35em"},md:{width:"26em",maxHeight:"35em"},lg:{width:"32.8em",maxHeight:"60em"}},AZ=(0,h.I4)(ep.P.div)(r4(),e=>{let{$size:t,$hasMaxWidth:n,$hasMaxHeight:r,$shouldFitContent:i}=e,{width:o,maxHeight:l}=AK[t];return(0,h.AH)(r9(),!i&&"min-width: ".concat(o),n?o:"none",r?l:"none")});h.I4.div(r6(),hK(2),uA("textSecondary"));let AX=h.I4.div(r8(),hK(.75),hK(1));h.I4.div(ie(),hK(1),hK(1),hK(.75),hK(1),AX);let A_=h.I4.div(it(),hK(.75),hK(1),hK(.25),hK(1)),AQ=e=>{var{title:t,onClose:n}=e,r=s$(e,["title","onClose"]);return(0,g.jsx)(A_,{children:(0,g.jsx)(AV,Object.assign({buttonAfter:(0,g.jsx)(vG,{"aria-label":"Close",variant:"subtle",iconBefore:(0,g.jsx)(b$,{}),onClick:n})},r,{children:t}))})},AJ=e=>{var{children:t,hasInitialPosition:n,hasMaxHeight:r=!0,hasMaxWidth:i=!1,isOpen:o,onClose:l,shouldAutoFocus:a=!0,shouldFitContent:s=!1,size:u="md",focusLockProps:c,headerProps:d,title:p}=e,h=s$(e,["children","hasInitialPosition","hasMaxHeight","hasMaxWidth","isOpen","onClose","shouldAutoFocus","shouldFitContent","size","focusLockProps","headerProps","title"]);let f=(0,O.useRef)(null);(0,O.useEffect)(()=>{var e;a&&n&&(null==(e=f.current)||e.focus())},[a,n]);let m=(0,O.useCallback)(e=>{"Escape"===e.key&&(null==l||l())},[l]),y=!!(d||p);return(0,g.jsx)(j$,Object.assign({},c,{shouldReturnFocus:!1,isDisabled:!a,children:(0,g.jsxs)(AZ,{$hasMaxHeight:r,$hasMaxWidth:i,onKeyDown:m,$shouldFitContent:s,$size:u,children:[y?(0,g.jsx)(AQ,Object.assign({title:p,onClose:l},d)):null,(0,g.jsx)(AX,{children:(0,g.jsx)(An,Object.assign({ref:f},h,{appearance:"popover",children:t}))})]})}))},Aq=e=>{var{anchorElement:t,isOpen:n,isWithinPortal:r,label:i,variant:o,offset:l=[0,4],onClose:a,placement:s="bottom-start",shouldAutoClose:u=!0,popperRef:c}=e,d=s$(e,["anchorElement","isOpen","isWithinPortal","label","variant","offset","onClose","placement","shouldAutoClose","popperRef"]);let p=(0,O.useCallback)(()=>{u&&(null==a||a())},[u,a]);return(0,g.jsx)(jg,{isOpen:n,onClose:a,anchorElement:t,offset:l,placement:s,label:i,variant:o,isWithinPortal:r,ref:c,children:(0,g.jsx)(AJ,Object.assign({},d,{isOpen:n,onClose:a,onItemSelect:p}))})},A$=h.I4.div(ir()),A1=e=>{let{label:t,description:n,option:r,onSelect:i,isSelected:o,renderItem:l}=e;return l({menuItemProps:{onSelect:(0,O.useCallback)(()=>{null==i||i(r)},[i,r]),isSelected:o,role:"option"},label:t,option:r,description:n})},A0=e=>{let{menuItemProps:t,label:n,description:r}=e;return(0,g.jsx)(AW,Object.assign({},t,{description:r,children:n}))},A2=O.forwardRef((e,t)=>{var{options:n,getOptionValue:r,getOptionLabel:i,getOptionDescription:o,onBlur:l,onChange:a,menuTitle:s,asyncProps:u,isRequired:c,isDisabled:d,isLoading:p,isWithinPortal:h,value:f,renderInner:m,shouldFitContainer:y=!1,shouldFitContent:x,shouldAutoFocus:b,shouldAutoClose:C,renderItem:v=A0,menuProps:j,hasError:A,contextMenuProps:w,tooltip:k}=e,S=s$(e,["options","getOptionValue","getOptionLabel","getOptionDescription","onBlur","onChange","menuTitle","asyncProps","isRequired","isDisabled","isLoading","isWithinPortal","value","renderInner","shouldFitContainer","shouldFitContent","shouldAutoFocus","shouldAutoClose","renderItem","menuProps","hasError","contextMenuProps","tooltip"]);let{closeMenu:P,openMenu:L,isOpen:M,setMenuAnchor:T,contextMenuProps:D,menuTriggerAttributes:I,menuAnchor:E}=function(){let{menuRole:e="menu"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,O.useId)(),[n,r]=(0,O.useState)(null),[i,o]=(0,O.useState)(!1);return(0,O.useMemo)(()=>{let l=()=>o(!1),a=Object.assign({"aria-haspopup":e},i&&{"aria-expanded":!0,"aria-controls":t});return{openMenu:()=>o(!0),closeMenu:l,toggleMenu:()=>o(e=>!e),isOpen:i,menuTriggerAttributes:a,menuAnchor:n,setMenuAnchor:r,contextMenuProps:{id:t,role:e,anchorElement:n,isOpen:i,onClose:l}}},[t,n,i,e])}({menuRole:"listbox"}),H=Object.assign(Object.assign({},w),D),V=()=>{L()},F=()=>{P(),null==l||l()};(0,O.useImperativeHandle)(t,()=>({open:V,close:F,focus:()=>{E instanceof HTMLElement&&E.focus()}}));let B=(0,g.jsx)(A$,Object.assign({},I,{role:"combobox","aria-required":c,"aria-disabled":d,onClick:()=>{M?P():L()},onKeyDown:e=>{"Enter"===e.key&&L()},ref:T,tabIndex:0,"aria-invalid":A},S));return(0,g.jsxs)(g.Fragment,{children:[k?(0,g.jsx)(ja,Object.assign({},k,{children:B})):B,(0,g.jsx)(Aq,Object.assign({},j,{isWithinPortal:h,shouldFitContent:x,shouldFitContainer:y,renderInner:m},H,{onClose:F,children:n.map((e,t)=>{let n=r(e),l=i(e),s=o(e);return(0,g.jsx)(A1,{isSelected:n===f,option:e,onSelect:a,label:l,description:s,renderItem:v},t)})}))]})}),A5={default:{backgroundColor:"grey80",backgroundColorHovered:"grey80",borderColor:"grey70",borderColorHovered:"grey60",borderColorError:"alert"},subtle:{backgroundColor:"transparent",backgroundColorHovered:"grey80",borderColor:"transparent",borderColorHovered:"transparent",borderColorError:"transparent"},alternative:{backgroundColor:"grey90",backgroundColorHovered:"grey90",borderColor:"grey90",borderColorHovered:"grey90",borderColorError:"alert"},grey80:{backgroundColor:"grey80",backgroundColorHovered:"grey80",borderColor:"grey80",borderColorHovered:"grey80",borderColorError:"alert"},"grey100-border":{backgroundColor:"grey100",backgroundColorHovered:"grey95",borderColor:"grey80",borderColorHovered:"grey80",borderColorError:"alert"}},A3=e=>pR(e,"label")&&pz(e,"value"),A7=e=>A3(e)?e.label:"",A9=e=>{if(A3(e))return e.value;throw Error("Invalid select option. Must contain `value` or a custom `getOptionValue` method")},A4=e=>A3(e)?e.description:void 0,A6=h.I4.select(ii()),A8="[placeholder]",we=(0,O.forwardRef)((e,t)=>{var{value:n,onChange:r,onBlur:i,isDisabled:o,isRequired:l,options:a,getOptionValue:s,getOptionLabel:u,selectPlaceholder:c,hasError:d}=e,p=s$(e,["value","onChange","onBlur","isDisabled","isRequired","options","getOptionValue","getOptionLabel","selectPlaceholder","hasError"]);return(0,g.jsxs)(A6,Object.assign({},p,{value:String(n)||A8,onChange:e=>{let t=e.target.value,n=a.find(e=>s(e)===t);n&&r&&r(n)},disabled:o,required:l,onBlur:i,"aria-invalid":d,ref:t,children:[(0,g.jsx)("option",{disabled:!0,value:A8,children:c}),a.map((e,t)=>{let n=s(e),r=u(e);return(0,g.jsx)("option",{value:String(n),children:r},t)})]}))}),wt=h.I4.div(il(),e=>{let{$isDisabled:t,$shouldFitContainer:n,$shouldFitContent:r,$variant:i,$hasError:o}=e,l=A5[i],a=uA(l.backgroundColor),s=uA(l.backgroundColorHovered),u=uA(o?l.borderColorError:l.borderColorHovered),c=uA(o?l.borderColorError:l.borderColor);return(0,h.AH)(io(),sQ,t?.5:1,a,sV.md,c,n?"initial":"28em",r?"auto":"10em",t?"none":"auto",sG.subtle,n&&!r?"100%":"auto",hK(4),hK(1),hK(.5),hK(1),s,u,u)}),wn=h.I4.div(ia()),wr=h.I4.div(is()),wi=h.I4.div(iu(),mX,e=>{let{$isPlaceholder:t}=e;return t?.5:1},uA("textPrimary")),wo=h.I4.div(ic(),mq,uA("textSecondary")),wl=h.I4.div(id()),wa=h.I4.div(ip(),uA("textDisabled")),ws=(0,O.forwardRef)(function(e,t){var{children:n,label:r,description:i,shouldFitContainer:o=!1,shouldFitContent:l=!1,variant:a="default",hasError:s,isDisabled:u,isLoading:c,iconBefore:d,isPlaceholder:p}=e,h=s$(e,["children","label","description","shouldFitContainer","shouldFitContent","variant","hasError","isDisabled","isLoading","iconBefore","isPlaceholder"]);return(0,g.jsxs)(wt,Object.assign({},h,{$isDisabled:u||c,$hasError:s,$shouldFitContainer:o,$shouldFitContent:l,$variant:a,role:"button",ref:t,children:[(0,g.jsxs)(g.Fragment,c?{children:[(0,g.jsx)(wn,{children:(0,g.jsx)(bP,{variant:"muted"})}),(0,g.jsx)(wl,{})]}:{children:[d&&(0,g.jsx)(wn,{children:d}),(0,g.jsxs)(wr,{children:[(0,g.jsx)(wi,{$isPlaceholder:p,children:r}),i&&(0,g.jsx)(wo,{children:i})]})]}),(0,g.jsx)(wa,{children:(0,g.jsx)(bJ,{size:"xs"})}),n]}))}),wu=(0,O.forwardRef)((e,t)=>{var{getOptionLabel:n=A7,getOptionValue:r=A9,getOptionDescription:i=A4,isDisabled:o,isLoading:l,isRequired:a,menuTitle:s,onChange:u,options:c=[],placeholder:d="Select an item",placeholderDescription:p,renderItem:h,renderValue:f=n,value:m,onBlur:y,id:x,disableNativeSelect:b,renderInner:C,menuProps:v,"aria-label":j,"aria-describedby":A,"aria-labelledby":w,isWithinPortal:k,shouldAutoSelectFirstOption:S=!1,shouldAutoOpen:P=!1,shouldFitContainer:L=!0,hasError:M,shouldFitContent:T,contextMenuProps:D,asyncProps:I,renderCustomControl:E,controlAriaLabel:H,tooltip:V,showDescriptionInControl:F=!0}=e,B=s$(e,["getOptionLabel","getOptionValue","getOptionDescription","isDisabled","isLoading","isRequired","menuTitle","onChange","options","placeholder","placeholderDescription","renderItem","renderValue","value","onBlur","id","disableNativeSelect","renderInner","menuProps","aria-label","aria-describedby","aria-labelledby","isWithinPortal","shouldAutoSelectFirstOption","shouldAutoOpen","shouldFitContainer","hasError","shouldFitContent","contextMenuProps","asyncProps","renderCustomControl","controlAriaLabel","tooltip","showDescriptionInControl"]);let{isMobile:z}=h0(),R=z&&!b,{menuSelectRef:Y,nativeSelectRef:G}=(e=>{let{ref:t,shouldAutoOpen:n,hasOptions:r}=e,i=(0,O.useRef)(null),o=(0,O.useRef)(null);return(0,O.useImperativeHandle)(t,()=>({focus:()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=o.current)||t.focus()},close:()=>{var e,t;null==(e=i.current)||e.blur(),null==(t=o.current)||t.close()},open:()=>{var e,t;null==(e=i.current)||e.focus(),null==(t=o.current)||t.open()}})),(0,O.useEffect)(()=>{var e,t;n&&r&&(null==(e=i.current)||e.focus(),null==(t=o.current)||t.open())},[r,n]),{menuSelectRef:o,nativeSelectRef:i}})({ref:t,shouldAutoOpen:P,hasOptions:!!c.length});(e=>{let{options:t,value:n,onChange:r,shouldAutoSelectFirstOption:i}=e;(0,O.useEffect)(()=>{let[e]=t;if(!i||n||void 0===e)return;let o=setTimeout(()=>null==r?void 0:r(e),0);return()=>clearTimeout(o)},[r,t,i,n])})({options:c,value:m,onChange:u,shouldAutoSelectFirstOption:S});let W=m?f(m):d,U=m?i(m):p,N=m?r(m):void 0,K=Object.assign({label:W,description:F?U:void 0,isDisabled:o,shouldFitContent:T,isLoading:l,hasError:M,shouldFitContainer:L,isPlaceholder:!m,"aria-label":H},B),Z=(0,O.useCallback)(()=>R?(0,g.jsx)(we,{ref:G,isRequired:a,options:c,value:N,onChange:u,onBlur:y,isDisabled:o,getOptionValue:r,getOptionLabel:n,id:x,"aria-describedby":A,selectPlaceholder:d,hasError:M}):(0,g.jsx)(A2,{contextMenuProps:D,menuTitle:s,shouldFitContainer:L,ref:Y,shouldAutoFocus:S,menuProps:v,isRequired:a,isDisabled:o,options:c,asyncProps:I,shouldFitContent:T,value:N,onChange:u,onBlur:y,isLoading:l,getOptionValue:r,getOptionLabel:n,getOptionDescription:i,renderItem:h,renderInner:C,"aria-labelledby":w,"aria-describedby":A,"aria-label":j,isWithinPortal:k,hasError:M,tooltip:V}),[A,j,w,I,D,i,n,r,M,x,o,l,a,k,v,Y,s,G,y,u,c,d,C,h,N,S,L,T,R,V]);return E?(0,g.jsx)(g.Fragment,{children:E(Object.assign(Object.assign({},K),{renderMenuSelect:Z}))}):(0,g.jsx)(ws,Object.assign({},K,{children:Z()}))}),wc=hK(1),wd=hK(1),wp=hK(2),wh=h.I4.div(ig(),e=>{let{$hasError:t,$isDisabled:n,$variant:r,$hasIconAfter:i,$hasIconBefore:o,$size:l}=e,a=i?"calc(var(--input-padding-x) + ".concat(bC.sm," + ").concat(hK(1),")"):"var(--input-padding-x)",s=o?"calc(var(--input-padding-x) + ".concat(bC.sm," + ").concat(hK(1),")"):"var(--input-padding-x)";return(0,h.AH)(ih(),hY,v3({hasError:t,isDisabled:n,variant:r}),a,s,wm[l])}),wg=h.I4.input(iy(),e=>{let{$alignment:t,$hasError:n,$isDisabled:r,$variant:i}=e;return(0,h.AH)(im(),v5({isDisabled:r}),v7({isDisabled:r,variant:i}),"center"===t?"center":"left")}),wf=h.I4.span(ib(),e=>{let{$position:t}=e;return(0,h.AH)(ix(),t)});h.I4.div(iC(),hW,sV.md,e=>{let{$size:t}=e;return wm[t]});let wm={sm:(0,h.AH)(iv(),wc,hK(3)),md:(0,h.AH)(ij(),wd,hK(4)),lg:(0,h.AH)(iA(),wp,hK(6))},wy=(0,O.forwardRef)((e,t)=>{var{alignment:n="left",iconAfter:r,iconBefore:i,hasError:o=!1,isDisabled:l=!1,size:a="md",isRequired:s,variant:u="default"}=e,c=s$(e,["alignment","iconAfter","iconBefore","hasError","isDisabled","size","isRequired","variant"]);let d=(0,O.useRef)(null),p=g3([t,d]),h={$alignment:n,$hasIconAfter:!!r,$hasIconBefore:!!i,$size:a,$hasError:o,$isDisabled:l,$variant:u};return(0,g.jsxs)(wh,Object.assign({},h,{onClick:e=>{var t;null==(t=d.current)||t.focus()},children:[(0,g.jsx)(wf,{$position:"left",children:i}),(0,g.jsx)(wg,Object.assign({},h,{"aria-invalid":o,disabled:l,ref:p,required:s,onKeyDown:e=>{var t;"Enter"===e.key&&e.currentTarget.blur(),null==(t=null==c?void 0:c.onKeyDown)||t.call(c,e)}},c)),(0,g.jsx)(wf,{$position:"right",children:r})]}))});wy.displayName="Input";let wx=h.I4.div(iw(),m1,uA("textSecondary"),hK(.5)),wb=e=>{let{label:t,input:n}=e;return(0,g.jsxs)("div",{children:[(0,g.jsx)(wx,{children:t}),n]})},wC=h.I4.div(ik(),hY),wv=e=>{let{propertyKey:t,palette:n,yAxisProperties:r,fallbackComponent:i=null,size:o}=e,l=function(e){let{yAxisProperties:t,palette:n,propertyKey:r}=e,i=t.findIndex(e=>e.key===r);return -1!==i?n[i%n.length]:void 0}({yAxisProperties:r,palette:n,propertyKey:t});if(!l)return i;let a=o&&bC[o];return(0,g.jsx)(wC,{style:{backgroundColor:l,width:a,height:a}})},wj=h.I4.div(iS(),hY,hK(.5)),wA=h.I4.div(iP(),hK(.5),hK(.75),uO,uA("grey80"),uT,uA("grey85"),sV.md,hK(3.2),hK(.24)),ww=h.I4.div(iL(),mZ,sd.medium,hK(.75)),wk=h.I4.div(iM(),hY,sJ.popover,uO,uA("grey85"),uT,uA("grey100"),sV.lg,uA("textPrimary")),wS=h.I4.div(iO(),uA("overlayBackground"),sV.lg,sF.md,hK(1),sB(uA("overlayBorderGradient"),1,"lg")),wP=h.I4.div(iT(),hY,hK(.5)),wL=h.I4.div(iD()),wM=h.I4.button(iI(),mZ,sd.medium,sV.md,hK(.5),hK(.6),uO,uA("grey75"),uT,uA("grey80"),uO,uA("grey75"),uT,uA("grey75")),wO=h.I4.div(iE(),hK(1.4),hK(.5),hK(10)),wT=e=>{let{initialValue:t,onChange:n,options:r,elementsPerRow:i=3,name:o}=e,l=(0,O.useId)(),a=null==r?void 0:r.map(e=>({label:e,value:e,renderIcon:()=>(0,g.jsx)(jL,{palette:[e],maxColors:1,size:"sm"})}));return(0,g.jsx)(wP,{$elementsPerRow:i,role:"radiogroup","aria-label":null!=o?o:"color-selector-".concat(l),children:a.map(e=>{var r;let i=e.value===t;return(0,g.jsxs)(wM,{type:"button",role:"radio","aria-checked":i,"aria-label":null!=(r=e.label)?r:e.value,onClick:()=>{n(e.value)},onKeyDown:t=>((e,t)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n(t))})(t,e.value),tabIndex:0,children:[e.renderIcon&&(0,g.jsx)(wL,{children:null==e?void 0:e.renderIcon()}),e.label&&(0,g.jsx)(wO,{children:e.label})]},e.value)})})};h.I4.div(iV(),hY,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v3({variant:n,hasError:t,isFocused:r})},hK(1),hK(.6),hK(1),uA("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,h.AH)(iH())});let wD=h.I4.div(iF(),hY,e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v3({variant:n,hasError:t,isFocused:r})},hK(.6),hK(1)),wI=h.I4.input(iz(),e=>{let{$isDisabled:t}=e;return v5({isDisabled:t})},e=>{let{$hasError:t,$variant:n,$isFocused:r}=e;return v7({variant:n})},uA("textPrimary"),e=>{let{$isDisabled:t}=e;return t&&(0,h.AH)(iB())});h.I4.div(iR(),uA("grey70")),h.I4.span(iY(),mX);let wE=h.I4.div(iG(),hK(1)),wH=(0,h.I4)(eb.h)(iW(),sV.md,uA("grey90")),wV=(0,h.I4)(eC.t)(iU()),wF=(0,h.I4)(ev.hB)(iN(),sV.sm,uA("grey90")),wB=(0,h.I4)(ej.a)(iK(),uA("white"),sF.sm);h.I4.div(iZ(),hY,sJ.popover,uA("grey100"),sV.md,sF.md,uA("grey90"),uA("textPrimary")),h.I4.div(iX(),hK(1),hK(1.5)),h.I4.div(i_(),mq,uA("textPrimary"));let wz=e=>{let{initialValue:t,onChange:n,onEnterPress:r}=e,[i,o]=(0,O.useState)((0,ew.H0)(null!=t?t:"#af9af7").toFormat("hsb")),[l,a]=(0,O.useState)((0,ew.H0)(null!=t?t:"#af9af7").toString("hex"));return(0,g.jsx)(ek.sk,{value:i,onChange:e=>{o(e),a(e.toString("hex")),n(e.toString("hex"))},children:(0,g.jsxs)(wE,{children:[(0,g.jsx)(wH,{colorSpace:"hsb",xChannel:"saturation",yChannel:"brightness",children:(0,g.jsx)(wB,{})}),(0,g.jsx)(wV,{colorSpace:"hsb",channel:"hue",children:(0,g.jsx)(wF,{children:(0,g.jsx)(wB,{})})}),(0,g.jsx)(wD,{children:(0,g.jsx)(wI,{placeholder:"#000000",value:l,onChange:e=>{a(e.target.value);try{let t=e.target.value.trim();t.startsWith("#")||(t="#".concat(t));let r=(0,ew.H0)(t);o(r),n(r.toString("hex"))}catch(e){}},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r())},onKeyDownCapture:e=>{"Backspace"===e.key&&e.stopPropagation()},autoFocus:!0})})]})})},wR=e=>{let{label:t,value:n,onChange:r,options:i=[],children:o}=e,l=e=>{null==r||r(e)},[a,s]=(0,O.useState)(!1),u=i.length>0;return(0,g.jsxs)(eT.bL,{open:a,onOpenChange:e=>{s(e=>!e)},children:[(0,g.jsxs)(wj,{children:[(0,g.jsx)(eT.l9,{children:(0,g.jsxs)(wA,{children:[(0,g.jsx)(jL,{palette:[null!=n?n:"transparent"],maxColors:1,size:"sm"}),(0,g.jsx)(bJ,{size:"xs"})]})}),(0,g.jsx)(ww,{children:t}),o]}),(0,g.jsx)(eT.ZL,{children:(0,g.jsx)(mu,{children:(0,g.jsx)(wk,{as:eT.UC,align:"start",side:"left",sideOffset:hN(1),children:(0,g.jsx)(wS,{children:u?(0,g.jsx)(wT,{options:i,initialValue:n,onChange:l}):(0,g.jsx)(wz,{initialValue:n,onChange:l,onEnterPress:()=>{s(!1)}})})})})})]})},wY=e=>{let t=function(){let[,e]=(0,O.useState)(0);return(0,O.useCallback)(()=>e(e=>e+1),[])}();return(0,O.useEffect)(()=>{let n=()=>{t()};return null==e||e.on("transaction",n),()=>{null==e||e.off("transaction",n)}},[e,t]),e},wG=/(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[\da-z\u00A1-\uFFFF][\w\u00A1-\uFFFF-]{0,62})?[\da-z\u00A1-\uFFFF]\.)+[a-z\u00A1-\uFFFF]{2,}\.?(?::\d{2,5})?(?:[#/?]\S*)?/gi,wW=e=>{let{editor:t,onClose:n}=e;wY(t);let r=(0,O.useRef)(null),i=t.getAttributes("link").href;return(0,O.useEffect)(()=>{var e,t;null==(e=r.current)||e.focus(),null==(t=r.current)||t.select()},[]),(0,g.jsx)(eS.l,{"aria-label":"Create link",onSubmit:e=>{var r;e.preventDefault();let o=null!=(r=new FormData(e.currentTarget).get("href"))?r:"",l=t.state.selection.to;!o&&i?t.chain().unsetLink().setTextSelection(l).focus().run():o.match(wG)?t.chain().setLink({href:o,target:"_blank"}).setTextSelection(l).focus().run():t.chain().setTextSelection(l).focus().run(),n()},children:(0,g.jsxs)(v9,{children:[(0,g.jsx)(eP.A,{name:"href",autoFocus:!0,children:(0,g.jsx)(v4,{ref:r,placeholder:"Type or paste a link...",defaultValue:null!=i?i:""})}),(0,g.jsx)(vG,{horizontalPadding:"sm",verticalPadding:"sm",title:"Submit",iconBefore:(0,g.jsx)(bY,{}),variant:"subtle",type:"submit"})]})})},wU=e=>e.state.selection.empty?e.chain().focus().selectAll():e.chain().focus(),wN=e=>{let{editor:t,inheritedFont:n,fonts:r}=e,i=t.getAttributes("textStyle").font,o=r.find(e=>!!i&&e.id===i.id);return o||(o=r.find(e=>(null==e?void 0:e.id)===n)),o||(o=r[0]),(0,g.jsx)(wu,{variant:"subtle",options:r,value:o,onChange:e=>{e.id===n?wU(t).unsetFont().run():wU(t).setFont(e).run()},shouldFitContent:!0,renderValue:e=>(0,g.jsx)(wZ,{children:function(e){switch(e){case cU.enum.fresh:return(0,g.jsx)(b0,{});case cU.enum.timeless:return(0,g.jsx)(b1,{});case cU.enum.modern:return(0,g.jsx)(b2,{});case cU.enum.technical:return(0,g.jsx)(b5,{});case cU.enum.fineliner:return(0,g.jsx)(b7,{});case cU.enum.brand:default:return(0,g.jsx)(b0,{})}}(e.id)}),renderItem:wK,getOptionValue:e=>e.id,tooltip:{label:"Font",hasInvertedTheme:!1}})},wK=e=>{let{menuItemProps:t,option:n}=e;return(0,g.jsx)(AW,Object.assign({},t,{children:(0,g.jsx)("span",{style:{fontFamily:po(n.fontFamily)},children:n.label})}))},wZ=h.I4.div(iQ()),wX=h.I4.div(iJ(),hY),w_=h.I4.span(iq(),mW),wQ=h.I4.span(i$(),mU),wJ=h.I4.span(i1(),mN),wq=h.I4.span(i0(),mq),w$=h.I4.span(i2(),mX),w1={value:null,label:"Text"},w0=[{value:6,label:"Caption"},w1,{value:3,label:"Heading 3"},{value:2,label:"Heading 2"},{value:1,label:"Heading 1"}],w2=e=>{var t;let{editor:n}=e,r=null!=(t=w0.find(e=>n.isActive("heading",{level:e.value})))?t:w1;return(0,g.jsx)(wu,{variant:"subtle",options:w0,value:r,onChange:e=>{null===e.value?n.chain().focus().setParagraph().run():n.chain().focus().toggleHeading({level:e.value}).run()},shouldFitContent:!0,renderValue:e=>e.label,renderItem:e=>{let{menuItemProps:t,option:n,label:r,description:i}=e;return(0,g.jsx)(AW,Object.assign({},t,{description:i,children:(0,g.jsxs)(wX,{children:[1===n.value&&(0,g.jsx)(w_,{children:r}),2===n.value&&(0,g.jsx)(wQ,{children:r}),3===n.value&&(0,g.jsx)(wJ,{children:r}),6===n.value&&(0,g.jsx)(wq,{children:r}),null===n.value&&(0,g.jsx)(w$,{children:r})]})}))},tooltip:{label:"Heading level",hasInvertedTheme:!1}})},w5=e=>{let{editor:t}=e,n=e=>n=>{let r=t.state.selection;t.chain().focus().setTextAlign(e).setTextSelection(r).run(),n.preventDefault()};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ja,{label:"Align left",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{variant:"subtle",iconBefore:(0,g.jsx)(bG,{}),isSelected:t.isActive({textAlign:"left"}),onMouseDown:n("left")})}),(0,g.jsx)(ja,{label:"Align center",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{variant:"subtle",iconBefore:(0,g.jsx)(bW,{}),isSelected:t.isActive({textAlign:"center"}),onMouseDown:n("center")})}),(0,g.jsx)(ja,{label:"Align right",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{variant:"subtle",iconBefore:(0,g.jsx)(bU,{}),isSelected:t.isActive({textAlign:"right"}),onMouseDown:n("right")})})]})},w3=e=>{let{editor:t,seriesColorOptions:n,renderIcon:r,getColorStyles:i}=e,o=t.getAttributes("textStyle").color,l=o&&o.trim()?o:"#000";return(0,g.jsx)(jq,{tooltip:"Text color",value:l,onChange:e=>{wU(t).setColor(e).run()},seriesColorOptions:n,renderIcon:r,getSwatchStyles:i})},w7=(0,O.forwardRef)(function(e,t){return(0,g.jsx)(vG,Object.assign({ref:t,variant:"subtle"},e))}),w9=(0,O.forwardRef)(function(e,t){let{ariaLabel:n,iconBefore:r,onClick:i,isSelected:o,supportedOptions:l,option:a}=e;return(null==l?void 0:l.includes(a))?(0,g.jsx)(w7,{ref:t,"aria-label":n,iconBefore:r,onMouseDown:e=>{e.preventDefault(),i()},isSelected:o}):null}),w4=e=>{let{editor:t,supportedOptions:n,onLinkClick:r,seriesColorOptions:i}=e;wY(t);let o=me(),l=gR(e=>e.customAppearance.font);return(0,g.jsxs)(g.Fragment,{children:[n.includes("color")?(0,g.jsx)(w3,{editor:t,seriesColorOptions:i}):null,o&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(wN,{editor:t,fonts:o,inheritedFont:pl(l).heading.fontId})," ",(0,g.jsx)(v8,{})]}),n.includes("heading")?(0,g.jsx)(w2,{editor:t}):null,(0,g.jsx)(v8,{}),(0,g.jsx)(w9,{option:"bold",supportedOptions:n,ariaLabel:"Bold",iconBefore:(0,g.jsx)(bF,{}),onClick:()=>{t.chain().focus().toggleBold().run()},isSelected:t.isActive("bold")}),(0,g.jsx)(w9,{option:"italic",supportedOptions:n,ariaLabel:"Italic",iconBefore:(0,g.jsx)(bB,{}),onClick:()=>{t.chain().focus().toggleItalic().run()},isSelected:t.isActive("italic")}),(0,g.jsx)(w9,{option:"underline",supportedOptions:n,ariaLabel:"Underline",iconBefore:(0,g.jsx)(bz,{}),onClick:()=>{t.chain().focus().toggleUnderline().run()},isSelected:t.isActive("underline")}),(null==n?void 0:n.includes("textAlign"))?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v8,{}),(0,g.jsx)(w5,{editor:t})]}):null,(0,g.jsx)(v8,{}),(0,g.jsx)(w9,{option:"link",supportedOptions:n,ariaLabel:"Link",iconBefore:(0,g.jsx)(bR,{}),onClick:r,isSelected:t.getAttributes("link").href})]})};!function(e){e.OPTIONS="OPTIONS",e.LINK="LINK"}(s||(s={}));let w6=(0,O.forwardRef)((e,t)=>{var{editor:n,supportedOptions:r,seriesColorOptions:i,onClose:o}=e,l=s$(e,["editor","supportedOptions","seriesColorOptions","onClose"]);let[a,u]=(0,O.useState)(s.OPTIONS);return(0,g.jsxs)(je,Object.assign({ref:t},l,{children:[a===s.OPTIONS?(0,g.jsx)(w4,{editor:n,supportedOptions:r,onLinkClick:()=>{u(s.LINK)},seriesColorOptions:i}):null,a===s.LINK?(0,g.jsx)(wW,{editor:n,onClose:o}):null]}))});w6.displayName="ToolbarContent";let w8=["color","bold","italic","underline","textAlign","heading","link"],ke=e=>{let{editor:t,supportedOptions:n=w8,seriesColorOptions:r}=e,[i,o]=(0,O.useState)(!1),l=(0,O.useRef)(null);return(0,O.useEffect)(()=>{if(!t)return;let e=()=>o(!0),n=e=>{var t;let{event:n}=e,{relatedTarget:r,currentTarget:i}=n;i instanceof Node&&r instanceof Node&&(i.contains(r)||(null==(t=l.current)?void 0:t.contains(r)))||o(!1)};return t.on("focus",e),t.on("blur",n),()=>{t.off("focus",e),t.off("blur",n)}},[t]),(0,O.useEffect)(()=>{if(i){let e=e=>{var n;!(e.target instanceof Node&&e.target.isConnected)||(null==(n=l.current)?void 0:n.contains(e.target))||(null==t?void 0:t.view.dom.contains(e.target))||o(!1)};return window.addEventListener("mousedown",e),()=>{window.removeEventListener("mousedown",e)}}},[null==t?void 0:t.view.dom,i]),(0,O.useEffect)(()=>{function e(e){if(t&&t.isFocused&&"Escape"===e.key){let e=t.state.selection.to;t.chain().setTextSelection(e).focus().run()}}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t]),t&&i?(0,g.jsx)(w6,{editor:t,supportedOptions:n,seriesColorOptions:r,ref:l,onClose:()=>o(!1)}):null},kt=e=>{let{editor:t,"aria-label":n,spellCheck:r}=e;return(0,g.jsx)(eI.$Z,{editor:t,"aria-label":n,spellCheck:r})},kn=(0,h.AH)(i5(),"inline-react-renderer"),kr="graphy-text-node",ki=eH.Ay.configure({HTMLAttributes:{class:kr}}),ko=(0,h.AH)(i3(),kr,uA("grey60"),hK(1.2),uA("textSecondary")),kl=function(){for(var e=arguments.length,t=Array(e),n=0;n({href:{default:null}})}).configure({HTMLAttributes:{class:kr}}),kc=(0,h.AH)(i9(),kr,mQ),kd=eB.Rg.configure({HTMLAttributes:{class:kr}}),kp=eB._J.configure({HTMLAttributes:{class:kr}}),kh=eB.ck.configure({HTMLAttributes:{class:kr}}),kg=(0,h.AH)(i4(),kr,kr,hK(4),kr,kr),kf=function(){for(var e=arguments.length,t=Array(e),n=0;n({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{font:{default:null,renderHTML:e=>e.font?{style:"font-family: ".concat(po(e.font.fontFamily),";")}:{},parseHTML:e=>{for(let[t,n]of Object.entries(sN))if(e.style.fontFamily===n)return t;return null}}}}]},addCommands:()=>({setFont:e=>t=>{let{chain:n}=t;return n().setMark("textStyle",{font:e}).run()},unsetFont:()=>e=>{let{chain:t}=e;return t().setMark("textStyle",{font:null}).run()}})}),kw=[eG.A,eK.A,eW.A,km,ka,ki,ku,kh,kd,kp,eY.Ay,eU.Ay,eN.Ay,kx,eZ.A.configure({types:["heading","paragraph"]}),eX.xJ,kA,eX.Q1,e_.lb,e_.vR,kj];function kk(e,t){var{content:n,extensions:r=kw,isValidContent:i,onError:o,isEditable:l}=e,a=s$(e,["content","extensions","isValidContent","onError","isEditable"]);return(0,eI.hG)(Object.assign(Object.assign({},a),{extensions:r,content:n,editable:l,onCreate:e=>{var t;(()=>{try{n&&"string"!=typeof n&&i(n)}catch(e){if(!o)throw new ps("caption-editor","Could not validate ProseMirror content",e);o(e)}})(),null==(t=null==a?void 0:a.onCreate)||t.call(a,e)},immediatelyRender:!1}),t)}function kS(){let{skip:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e||[]).map(e=>e.name);return kw.filter(e=>!t.includes(e.name))}let kP=e_.Or.configure({showOnlyCurrent:!1}),kL=(0,h.AH)(on(),uA("textDisabled")),kM=(0,h.AH)(or(),kL),kO=(0,h.I4)(kv)(oo(),kM,e=>{let{$shouldFitContainer:t}=e;return t&&(0,h.AH)(oi())}),kT=e=>{var{showToolbar:t=!0,shouldFitContainer:n=!1,children:r,editor:i,seriesColorOptions:o}=e,l=s$(e,["showToolbar","shouldFitContainer","children","editor","seriesColorOptions"]);return(0,g.jsxs)(kO,{$shouldFitContainer:n,children:[t&&(0,g.jsx)(ke,{editor:i,seriesColorOptions:o}),(0,g.jsx)(kt,Object.assign({editor:i},l)),r]})};function kD(){let{placeholder:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...kS({skip:[ki,ka,km]}),kf({addAttributes(){let e=this.parent;return Object.assign(Object.assign({},e?e():{}),{placeholder:{default:null}})}}),kl({addAttributes(){let e=this.parent;return Object.assign(Object.assign({},e?e():{}),{placeholder:{default:""}})}}),kP.configure({placeholder:t=>{let{node:n}=t;return n.attrs.placeholder||e}})]}let kI=(e,t)=>eQ.bP.fromJSON(e,t).check(),kE=(0,eE._w)(kD()),kH=e=>kI(kE,e);function kV(e,t){var{placeholder:n,onEnterPress:r,onError:i,content:o,isEditable:l=!0}=e,a=s$(e,["placeholder","onEnterPress","onError","content","isEditable"]);return kk(Object.assign({extensions:function(e){var{onEnterPress:t}=e;return[...kD(s$(e,["onEnterPress"])),...t?[eE.YY.create({name:"interceptNewline",addKeyboardShortcuts:()=>({Enter:()=>(t(),!0)})})]:[]]}({placeholder:n,onEnterPress:r}),content:o,isEditable:l,onError:(0,O.useCallback)(e=>{throw i&&i(e),new ps("caption-editor","Could not display ProseMirror content",e)},[i]),isValidContent:kH},a),t)}let kF=O.forwardRef(function(e,t){var{children:n}=e,r=s$(e,["children"]);let i=kV(r);return(0,O.useImperativeHandle)(t,()=>({editor:i}),[i]),(0,O.useEffect)(()=>{!r.autofocus||(null==i?void 0:i.isDestroyed)||null==i||i.commands.focus()},[null==i?void 0:i.isDestroyed]),(0,g.jsx)(kT,Object.assign({editor:i},r,{children:null==n?void 0:n(i)}))}),kB=(0,O.createContext)(null),kz=uE(kB,"CaptionEditorControlledContext"),kR=e=>{var{children:t,editorDeps:n}=e;let r=kV(s$(e,["children","editorDeps"]),n),i=(0,O.useMemo)(()=>({editor:r}),[r]);return(0,g.jsx)(kB.Provider,{value:i,children:t})},kY=e=>{var{children:t}=e,n=s$(e,["children"]);let{editor:r}=kz();return(0,g.jsx)(kT,Object.assign({editor:r},n,{children:t}))},kG={type:"doc",content:[{type:"paragraph"}]},kW=D.Ik({type:D.eu("doc"),content:D.YO(D.Ik({type:D.eu("paragraph"),placeholder:D.Yj().optional(),content:D.Vx()})).length(1)}),kU=e=>kW.safeParse(e).success,kN=e=>{let t=eQ.bP.fromJSON(kE,e);return t.textBetween(0,t.nodeSize-2,"\n").trim()},kK=/^\s*Source\s*:\s*.+$/,kZ=e=>{let t=eQ.bP.fromJSON(kE,e),n=[];return t.forEach(e=>{e.textContent.match(kK)||n.push(e.toJSON())}),{type:"doc",content:n}},kX=e=>{let t=null;return e.forEach(e=>{e.textContent.match(kK)&&(t=e.toJSON())}),t},k_=h.I4.div(ol(),hY,uA("textPrimary"),uA("textDisabled"),uA("textPrimary")),kQ=(0,h.I4)(vG)(oa()),kJ=e=>{var t,n;let r=(0,O.useRef)(null),[i,o]=(0,O.useState)(!(null==(n=null==(t=r.current)?void 0:t.editor)?void 0:n.state.doc.textContent.trim().length)),l=()=>{var t;let n=null==(t=r.current)?void 0:t.editor,i=null==n?void 0:n.state.doc.toJSON();if(!i)return;let{propertyKey:o,rowIndex:l}=pp(e.dataPoint.id);e.onAnnotate({id:crypto.randomUUID(),propertyKey:o,rowIndex:l,rowValue:e.getRowCategoricalValue(l),config:{type:"tooltip",caption:i}})};return(0,g.jsxs)(vZ,{title:"Annotate",onBack:()=>e.setActiveSubMenu(null),children:[(0,g.jsx)(k_,{children:(0,g.jsx)(kF,{onEnterPress:l,onUpdate:()=>{var e,t;o(!(null==(t=null==(e=r.current)?void 0:e.editor)?void 0:t.state.doc.textContent.trim().length))},autofocus:!0,ref:r,placeholder:"Add a comment",showToolbar:!1})}),(0,g.jsx)(kQ,{onClick:l,alignment:"left",variant:"primary",disabled:i,verticalPadding:"sm",children:"Add"})]})},kq={type:"highlight",highlight:"data-point"},k$={type:"highlight",highlight:"series"},k1={type:"highlight",highlight:"x-value"},k0=e=>{let t=e.filter(yP).flatMap(e=>e.dataPoints.filter(yA)),n=new Set(t.map(e=>e.xValue));return{barsInBarGroupOrStack:Math.ceil(t.length/n.size),barSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yv).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length,lineSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yC).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length,pointSeriesCount:[...new Set(e.flatMap(e=>e.dataPoints.filter(yk).map(e=>{var t;return null!=(t=e.groupValues[0])?t:null})))].length}},k2=e=>{let t=mr("overPlotPortalId"),n=x$("plotOffsetX"),r=x$("plotOffsetY"),i=x$("plotWidth"),o=x$("plotHeight");return(0,g.jsx)(md,{container:document.getElementById(t),id:"annotationsMenuAddon",zIndex:f6.annotationsMenu,children:(0,g.jsx)(bp,{style:{transform:"translate(".concat(n,"px, ").concat(r,"px)"),width:i,height:o},children:(0,g.jsx)(k5,Object.assign({},e))})})},k5=e=>{let{annotations:t,highlightStyle:n,getDataPointId:r,getRowCategoricalValue:i,stickers:o,onAnnotate:l,onRemoveHighlight:a}=e,s=gz(e=>e.theme),u=ba(),{overlayState:{activeHitbox:c,closestDataPointToAnnotation:d,distanceToAnnotation:p},events:h}=yb(),[f,m]=(0,O.useState)(null),{canUserInteractWithAddon:y}=bc(),[x,b]=(0,O.useState)(!1),{isLineDimmed:C,isBarDimmed:v}=yM(),[j,A]=(0,O.useState)(!1),w=(0,O.useCallback)(e=>null!==e&&t.some(t=>!uy(t)&&um(t)&&r(t)===e.id),[t,r]);(0,O.useEffect)(()=>{let e=e=>{let t=e.detail;y("annotationsMenuAddon")&&(w(t.closestDataPointToAnnotation)||t.distanceToAnnotation<=15&&(m(t.closestDataPointToAnnotation),b(!0),A(!0),h.emit("deactivateHitbox",{})))};return h.on("click",e),()=>h.off("click",e)},[y,h,w]),(0,O.useEffect)(()=>{null!==c&&(j||(d&&!w(d)&&m(d),p>15&&(b(!1),null===c&&m(null))))},[c,d,p,w,j]),(0,O.useEffect)(()=>{null!==c||x||m(null)},[c,x]),(0,O.useEffect)(()=>{w(d)&&m(null)},[f,d,w]);let k=(0,O.useMemo)(()=>(null==d?void 0:d.id)===(null==f?void 0:f.id)&&!w(d)&&p<=15,[d,p,w,f]);(0,O.useEffect)(()=>{k?document.body.style.cursor="pointer":document.body.style.removeProperty("cursor")},[k]);let S=(0,O.useMemo)(()=>null===f?{x:0,y:0}:x8(f),[f]),P=(e=>{let{dataPoint:t,highlightStyle:n,isLineDimmed:r,isBarDimmed:i}=e,o=ma();return t?yC(t)||yk(t)||yw(t)?xa({theme:o,color:t.vizColor,isDimmed:r(t.observation),highlightStyle:n}):yv(t)?xr({theme:o,fill:t.vizColor,opacity:t.fillOpacity,isDimmed:i(t.observation),highlightStyle:n}):"":""})({dataPoint:f,highlightStyle:n,isLineDimmed:C,isBarDimmed:v});return(0,g.jsx)(bg,{$isActive:j,children:(0,g.jsx)(bh,{$isVisible:null!==f,$isHovered:k,$isSticky:x,style:{transform:"translate(".concat(S.x,"px, ").concat(S.y,"px) translate(-50%, -50%)")},children:(0,g.jsxs)(ey.bL,{open:j,onOpenChange:A,children:[(0,g.jsx)(CU,{plusStrokeColor:P,isOpen:j,isSticky:x,isHovered:k}),(0,g.jsx)(md,{container:null==u?void 0:u.container,children:f&&(0,g.jsx)(k3,{theme:s,dataPoint:f,getRowCategoricalValue:i,stickers:o,onAnnotate:e=>{l(e),A(!1)},onRemoveHighlight:()=>{f&&a(f),A(!1)}})})]})})})},k3=(0,O.forwardRef)((e,t)=>{let[n,r]=(0,O.useState)(null),{isUnhighlightable:i,options:o}=(e=>{let{activeDataPoint:t}=e,{hitboxes:n}=yb(),{isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}=yM();return(0,O.useMemo)(()=>{let e=(e=>{let{activeDataPoint:t,hitboxes:n,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}=e,l=(e=>{let{activeDataPoint:t,isPointHighlighted:n,isSeriesHighlighted:r,isBarHighlighted:i}=e;return t&&(yC(t)||yk(t))?r(t.observation)||n(t.observation):t&&yv(t)?i(t.observation):!(!t||!yw(t))&&n(t.observation)})({activeDataPoint:t,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o}),a=(e=>{let{activeDataPoint:t,hitboxes:n}=e,{lineSeriesCount:r,barsInBarGroupOrStack:i,barSeriesCount:o,pointSeriesCount:l}=k0(n);if(!t)return[];if(yk(t)){let e=[{label:"point",annotation:kq}];return l>1&&e.push({label:"series",annotation:k$}),e}if(yC(t)){let e=[{label:"point",annotation:kq}];return(r>1||1===r&&o>=1)&&e.push({label:"line",annotation:k$}),e}if(yv(t)){let e=[{label:"bar",annotation:kq}];return i>1&&e.push({label:"stacked"===t.stackType||"stacked-fill"===t.stackType?"stack":"group",annotation:k1}),o>1&&e.push({label:"series",annotation:k$}),e}return yw(t)?[{label:"slice",annotation:k1}]:[]})({activeDataPoint:t,hitboxes:n});if(!t)return{options:[],isUnhighlightable:l};if(yC(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"point"!==e.label)),i(t.observation)&&(e=e.filter(e=>"line"!==e.label)),{options:e,isUnhighlightable:l}}if(yk(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"point"!==e.label)),i(t.observation)&&(e=e.filter(e=>"series"!==e.label)),{options:e,isUnhighlightable:l}}if(yv(t)){let e=a;return o(t.observation)&&(e=e.filter(e=>"bar"!==e.label&&"total"!==e.label)),{options:e,isUnhighlightable:l}}if(yw(t)){let e=a;return r(t.observation)&&(e=e.filter(e=>"slice"!==e.label)),{options:e,isUnhighlightable:l}}return{options:[],isUnhighlightable:l}})({activeDataPoint:t,hitboxes:n,isPointHighlighted:r,isSeriesHighlighted:i,isBarHighlighted:o});return Object.assign(Object.assign({},e),{options:e.options})},[t,n,r,i,o])})({activeDataPoint:e.dataPoint}),l=(()=>{switch(n){case"sticker":return(0,g.jsx)(vq,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,stickers:e.stickers,onAnnotate:e.onAnnotate});case"highlight":return(0,g.jsx)(vX,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate,options:o});case"text":return(0,g.jsx)(kJ,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate});default:return(0,g.jsx)(vw,{dataPoint:e.dataPoint,getRowCategoricalValue:e.getRowCategoricalValue,setActiveSubMenu:r,onAnnotate:e.onAnnotate,onRemoveHighlight:i?e.onRemoveHighlight:void 0,highlightOptions:o})}})();return(0,g.jsx)(ms,{theme:e.theme,children:(0,g.jsx)(bb,{ref:t,sideOffset:12,side:"right",align:"start",children:l})})});k3.displayName="AnnotationsMenu";let k7=e=>{let{dataPoint:t,formatter:n=ug}=e;if(!yj(t))return null;let{alphaValue:r}=t;if(void 0===r)return null;let i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Geometry opacity value",title:i.plain,children:i.rich})},k9=e=>{let{dataPoint:t,formatter:n=ug}=e,r=k4(t,n,mr("waterfallTotalLabel"));return(0,g.jsx)("span",{"aria-label":"X-axis value",title:r.plain,children:r.rich})},k4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ug,n=arguments.length>2?arguments[2]:void 0,{id:r,xValue:i,relatedXValue:o}=e;return r===pc?{plain:n,rich:n}:t(null!=o?o:i,e)},k6=e=>{let{dataPoint:t,formatter:n=ug}=e,{yValue:r}=t,i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Y-axis value",title:i.plain,children:i.rich})},k8=e=>{let{dataPoint:t,formatter:n=ug}=e;return yk(t)&&t.labelValue?(0,g.jsx)(Se,{dataPoint:t,formatter:n}):(0,g.jsx)(St,{dataPoint:t,formatter:n})},Se=e=>{let{dataPoint:t,formatter:n=ug}=e,{labelValue:r}=t;if(!r)return null;let i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Grouping",title:i.plain,children:i.rich})},St=e=>{let{dataPoint:t,formatter:n=ug}=e,{groupValues:[r]}=t;if(!r)return null;let i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Grouping",title:i.plain,children:i.rich})},Sn=e=>{let{dataPoint:t,formatter:n=ug}=e,{pieLabel:r}=t,i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Label",title:i.plain,children:i.rich})},Sr=e=>{let{dataPoint:t,formatter:n=ug}=e,{pieValue:r}=t,i=n(r,t);return(0,g.jsx)("span",{"aria-label":"Value",title:i.plain,children:i.rich})},Si=e=>new Date(e.getTime()),So=e=>{let{xType:t,dataPoint:n,previousDataPoint:r,formatter:i,labelSize:o,trendSize:l}=e,{xValue:a,yValue:s}=n,u=(0,Y.A)(),c=(0,O.useMemo)(()=>{var e;if(!r)return null;let n=fZ({intl:u,primaryValue:s,comparisonValue:r.yValue});return null===n?null:Object.assign(Object.assign({},n),{fromText:null!=(e=(e=>{let{currentXValue:t,previousXValue:n,xType:r,width:i}=e,[o,l]=((e,t)=>{if(null===e||null===t)return[null,null];try{return[fi(e),fi(t)]}catch(e){return[null,null]}})(t,n);if(!o||!l)return null;if(!dq(r))return"previous";let a="long"===i?"previous":"prev";return(0,eJ.n)(o,(e=>Si(e).setUTCFullYear(e.getUTCFullYear()+1))(l))?"".concat(a," year"):(0,eJ.n)(o,(e=>Si(e).setUTCMonth(e.getUTCMonth()+1))(l))?"".concat(a," month"):(0,eJ.n)(o,(e=>Si(e).setUTCDate(e.getUTCDate()+7))(l))?"".concat(a," week"):(0,eJ.n)(o,(e=>Si(e).setUTCDate(e.getUTCDate()+1))(l))?"".concat(a," day"):(0,eJ.n)(o,(e=>Si(e).setUTCHours(e.getUTCHours()+1))(l))?"".concat(a," hour"):null})({currentXValue:a,previousXValue:r.xValue,xType:t,width:"small"===o?"short":"long"}))?e:i?i(r.xValue,r).plain:fb({intl:u,value:r.xValue})})},[r,u,s,a,t,o,i]);return c?(0,g.jsx)(mA,{size:o,text:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ud,{appearance:c.appearance,size:l,children:c.label})," ",(0,g.jsxs)("span",{children:["vs ",c.fromText]})]})}):null},Sl=e=>{if((e=>yv(e)&&"hatched"===e.fillType||yC(e)&&"dashed"===e.lineType)(e))return"hatched"},Sa=h.I4.div(os()),Ss=h.I4.div(ou(),hK(.25)),Su=h.I4.span(oc(),sD,e=>{let{$shouldTruncate:t}=e;return t&&hq},uA("white")),Sc=h.I4.span(od(),sE,e=>{let{$shouldTruncate:t}=e;return t&&hq},uA("tooltipLabelTextColor")),Sd=e=>{let{footerLabel:t,items:n,shouldTruncate:r=!1}=e;return(0,g.jsxs)(Sa,{children:[n.map((e,t)=>{let{legendSymbol:n,label:i,trend:o}=e;return(0,g.jsxs)(O.Fragment,{children:[(0,g.jsxs)(Ss,{children:[n,(0,g.jsx)(Su,{$shouldTruncate:r,children:i})]}),o]},t)}),t&&(0,g.jsx)(Sc,{$shouldTruncate:r,children:t})]})},Sp=()=>{let e=ma(),{isBarDimmed:t,isLineDimmed:n,dimAmount:r}=yM();return{getLegendSymbolFill:(i,o)=>{let l=(e=>yv(e)?t(e.observation):!!yC(e)&&n(e.observation))(i)&&"normal"===r,a=(e=>yv(e)?e.fillOpacity:1)(i);if(yv(i))return xr({theme:e,fill:i.vizColor,opacity:a,isDimmed:l,highlightStyle:o});if(yC(i))return xa({theme:e,color:i.vizColor,isDimmed:l,highlightStyle:o});try{return eq.Ay.mix(e.values.grey100,i.vizColor,a).hex()}catch(e){return i.vizColor}}}},Sh=e=>{var{xType:t,isPinned:n=!1,shouldShowTrend:r,isHovering:i=!1,shouldShowMiniTooltip:o,highlightStyle:l,dataPoint:a}=e,s=s$(e,["xType","isPinned","shouldShowTrend","isHovering","shouldShowMiniTooltip","highlightStyle","dataPoint"]);let u=(0,Y.A)(),{getLegendSymbolFill:c}=Sp();if(!a||!yw(a)&&!yA(a))return null;let d=Sg(Object.assign({dataPoint:a,intl:u,xType:t,shouldShowTrend:r,shouldShowMiniTooltip:o,getLegendSymbolFill:c,highlightStyle:l},s)),p=n||o;return Sf({isPinned:n,isHovering:i,shouldShowMiniTooltip:o})?(0,g.jsx)(Sd,{footerLabel:p?void 0:d.label,items:[{label:d.value,legendSymbol:(0,g.jsx)(ue,{symbol:a.type,fill:c(a,l),pattern:Sl(a)}),trend:Sm(a,{isPinned:n,shouldShowTrend:r})&&(0,g.jsx)(So,{xType:t,dataPoint:a,previousDataPoint:a.previousDataPoint,formatter:s.formatXValue,labelSize:"small",trendSize:"small"})}]}):(0,g.jsx)(mR,Object.assign({},d))},Sg=e=>{var{dataPoint:t,intl:n,xType:r,shouldShowMiniTooltip:i,shouldShowTrend:o,getLegendSymbolFill:l,highlightStyle:a}=e,s=s$(e,["dataPoint","intl","xType","shouldShowMiniTooltip","shouldShowTrend","getLegendSymbolFill","highlightStyle"]);let{previousDataPoint:u}=t,c={heading:null,value:null,label:null,caption:null,accessory:(0,g.jsx)(ue,{symbol:t.type,fill:l(t,a),pattern:Sl(t)}),trend:null};if(yw(t)){let{percentage:e,valueType:r}=t;return Object.assign(Object.assign({},c),{heading:(0,g.jsx)(Sn,{dataPoint:t,formatter:s.formatPieLabel}),value:(0,g.jsx)(Sr,{dataPoint:t,formatter:s.formatPieValue}),label:i?(0,g.jsx)(Sn,{dataPoint:t,formatter:s.formatPieLabel}):null,caption:r===gA.Percentage?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ud,{appearance:"neutral",children:fO({intl:n,value:e})})," of total"]})})}return yA(t)?yj(t)?Object.assign(Object.assign({},c),{value:(0,g.jsx)(k7,{dataPoint:t,formatter:s.formatAlphaValue}),label:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(k6,{dataPoint:t,formatter:s.formatYValue})," \xb7"," ",(0,g.jsx)(k9,{dataPoint:t,formatter:s.formatXValue})]})}):Object.assign(Object.assign({},c),{heading:(0,g.jsx)(k8,{dataPoint:t,formatter:s.formatGroupValue}),value:(0,g.jsx)(k6,{dataPoint:t,formatter:s.formatYValue}),label:(0,g.jsx)(k9,{dataPoint:t,formatter:s.formatXValue}),trend:o&&(0,g.jsx)(So,{xType:r,dataPoint:t,previousDataPoint:u,formatter:s.formatXValue})}):c},Sf=e=>{let{isPinned:t,isHovering:n,shouldShowMiniTooltip:r}=e;return t&&!n||!t&&r},Sm=(e,t)=>{let{isPinned:n,shouldShowTrend:r}=t;return!!(r&&!n&&yA(e)&&!yj(e))},Sy=h.I4.div(op(),hK(.8));h.I4.div(oh(),sI,uA("white"));let Sx=h.I4.div(og()),Sb=h.I4.div(of()),SC=h.I4.div(om(),sT,uA("tooltipLabelTextColor")),Sv=e=>{let{accessory:t,value:n,label:r,caption:i}=e;return(0,g.jsxs)(Sx,{children:[(0,g.jsx)(Sb,{children:i}),(0,g.jsxs)(SC,{children:[(0,g.jsxs)(Sy,{children:[null!=t?t:(0,g.jsx)("div",{}),r]}),n]})]})},Sj=e=>{let{dataPoint:t,formatPieValue:n,formatPieLabel:r,isPinned:i=!1,formatXValue:o,formatYValue:l,formatAlphaValue:a,isEditable:s,isHovering:u=!1,annotationConfig:c,highlightStyle:d,onUpdate:p}=e,{getLegendSymbolFill:h}=Sp(),f=kk({content:null==c?void 0:c.caption,isValidContent:e=>!!e},[null==c?void 0:c.caption]),m=(0,O.useMemo)(()=>{let e={caption:(0,g.jsx)(kF,{content:null==c?void 0:c.caption,isEditable:s,placeholder:"",showToolbar:!1,onBlur:e=>{null==p||p(e.editor.getJSON())}}),accessory:null,label:null,value:null};return yA(t)&&(e.accessory=(0,g.jsx)(ue,{symbol:t.type,fill:h(t,d),pattern:Sl(t)}),yj(t)?(e.label=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(k6,{dataPoint:t,formatter:l})," \xb7"," ",(0,g.jsx)(k9,{dataPoint:t,formatter:o})]}),e.value=(0,g.jsx)(k7,{dataPoint:t,formatter:a})):(e.label=(0,g.jsx)(k9,{dataPoint:t,formatter:o}),e.value=(0,g.jsx)(k6,{dataPoint:t,formatter:l}))),yw(t)&&(e.accessory=(0,g.jsx)(ue,{symbol:t.type,fill:h(t,d)}),e.label=(0,g.jsx)(Sn,{dataPoint:t,formatter:r}),e.value=(0,g.jsx)(Sr,{dataPoint:t,formatter:n})),e},[null==c?void 0:c.caption,t,a,r,n,o,l,h,d,s,p]);return t?i&&!u?(0,g.jsx)(Sd,{items:[{label:null==f?void 0:f.getText()}],shouldTruncate:!0}):(0,g.jsx)(ms,{theme:h3,children:(0,g.jsx)(Sv,Object.assign({},m))}):null},SA=e=>{let{dataPoint:t,xType:n,arrowPlacement:r,highlightStyle:i,isEditable:o,onUpdate:l,matchingAnnotation:a,formatters:s}=e,[u,c]=(0,O.useState)(!1),d=void 0!==(null==a?void 0:a.caption),p=null!=n?n:gA.Text;return a?(0,g.jsx)(mM,{hasArrow:!0,arrowPlacement:r,onHover:()=>c(!0),onHoverEnd:()=>c(!1),children:d?(0,g.jsx)(Sj,Object.assign({},s,{dataPoint:t,annotationConfig:a,isPinned:!0,isEditable:o,isHovering:u,onUpdate:l,highlightStyle:i})):(0,g.jsx)(Sh,u?Object.assign({},s,{dataPoint:t,xType:p,isPinned:!0,isHovering:!0,shouldShowMiniTooltip:!1,shouldShowTrend:!1,highlightStyle:i}):Object.assign({},s,{dataPoint:t,xType:p,isPinned:!0,isHovering:!1,shouldShowMiniTooltip:!0,shouldShowTrend:!1,highlightStyle:i}))}):null},Sw=e=>{let{dataPoint:t,xType:n,shouldShowTrend:r,highlightStyle:i,formatters:o,shouldShowMiniTooltip:l}=e,a=null!=n?n:gA.Text;return(0,g.jsx)(mM,{hasArrow:!1,children:(0,g.jsx)(Sh,Object.assign({},o,{dataPoint:t,xType:a,isPinned:!1,isHovering:!0,shouldShowMiniTooltip:l,shouldShowTrend:dq(a)&&r,highlightStyle:i}))})},Sk=e=>{var{mode:t="hover",dataPoint:n,xType:r=gA.Text,shouldShowTrend:i,annotations:o,arrowPlacement:l,highlightStyle:a,isEditable:s,onUpdate:u,shouldShowMiniTooltip:c}=e,d=s$(e,["mode","dataPoint","xType","shouldShowTrend","annotations","arrowPlacement","highlightStyle","isEditable","onUpdate","shouldShowMiniTooltip"]);let p=(0,O.useMemo)(()=>{var e;let t=null==o?void 0:o.find(e=>!uy(e)&&!!um(e)&&pd(e)===(null==n?void 0:n.id));return"tooltip"===(null==(e=null==t?void 0:t.config)?void 0:e.type)?t.config:null},[o,null==n?void 0:n.id]);return"pinned"===t?(0,g.jsx)(SA,{dataPoint:n,xType:r,arrowPlacement:l,highlightStyle:a,isEditable:s,onUpdate:u,matchingAnnotation:p,formatters:d}):(0,g.jsx)(Sw,{dataPoint:n,xType:r,shouldShowTrend:i,highlightStyle:a,formatters:d,shouldShowMiniTooltip:!!c})},SS=e=>{let{overlayState:t}=yb(),{pointer:n,plotWidth:r,closestGeomDataPoint:i}=t,o=null!==r&&r<=400,{canUserInteractWithAddon:l}=bc(),a=l("tooltipAddon"),{isVisible:s,setTooltipContainer:u,position:c}=mD({isEnabled:null!==i&&a,pointer:n,offset:o?12:24});return s&&i?(0,g.jsx)(mv,{ref:u,children:(0,g.jsx)("div",{style:c,children:(0,g.jsx)(Sk,Object.assign({dataPoint:i,shouldShowMiniTooltip:o},e))})}):null},SP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:"tooltip",render:()=>(0,g.jsx)(SS,Object.assign({mode:"hover"},e))}},SL=O.createContext(null),SM=()=>{let e=(0,O.useContext)(SL);if(null===e)throw Error("ScalesProvider must be present in the React tree");return e},SO={xValues:[],_setXValues(){},yDomain:[],_setYDomain(){},secondaryYDomain:[],_setSecondaryYDomain(){},legendItems:[],_setLegendItems(){},defaultLegendPosition:"top",_setDefaultLegendPosition(){},availableLegendPositions:[],_setAvailableLegendPositions(){}},ST=O.createContext(null),SD=()=>{let e=(0,O.useContext)(ST);return null!=e?e:SO},SI=e=>{let{children:t}=e,[n,r]=(0,O.useState)([]),[i,o]=(0,O.useState)([]),[l,a]=(0,O.useState)([]),[s,u]=(0,O.useState)([]),[c,d]=(0,O.useState)("top"),[p,h]=(0,O.useState)([]),f=(0,O.useMemo)(()=>({xValues:n,_setXValues:r,yDomain:i,_setYDomain:o,secondaryYDomain:l,_setSecondaryYDomain:a,legendItems:s,_setLegendItems:u,defaultLegendPosition:c,_setDefaultLegendPosition:d,availableLegendPositions:p,_setAvailableLegendPositions:h}),[n,i,l,s,c,p]);return(0,g.jsx)(ST.Provider,{value:f,children:t})},SE=[...dh,...dg,"waterfall","combo","funnel"],SH=(e,t)=>{let n=0;return 1===e?n=.75/t:e>1&&(n=.7/e/t+.2),{innerPadding:n,outerPadding:.5*n}},SV=[...dh,...dg,"heatmap","combo"],SF=(e,t)=>{let n=t.getTime()-e.getTime();return e.getFullYear()===t.getFullYear()-1&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()?"yearly":e.getMonth()+1===t.getMonth()||11===e.getMonth()&&0===t.getMonth()&&e.getFullYear()+1===t.getFullYear()?"monthly":6048e5===n?"weekly":864e5===n?"daily":36e5===n?"hourly":null},SB=e=>{let{vizType:t,children:n,aestheticMappings:r,data:i,options:o,xGoalValue:a,yGoalValue:s,comboPlotAxisCount:u="double",flipAxes:c}=e,{x:d,y:p,size:h,yValue:f,group:m,xStackLower:y,xStackUpper:x,yStackLower:b,yStackUpper:C}=r,v=x$("plotWidth"),j=x$("plotHeight"),A=gz(e=>e.computedConfig.comboPlotType),w=c?j:v,k=c?v:j,S=(0,O.useMemo)(()=>(e=>{let{vizType:t,data:n,x:r,y:i,group:o}=e;if(!r||!i||!SE.includes(t))return{innerPadding:0,outerPadding:0};let l=[...new Set(n.getValues(r))].length;if(!yp(o))return SH(l,1);switch(t){case"barStacked":case"columnStacked":case"barStackedFill":case"columnStackedFill":{let{barGroupKeys:e}=yF({vizType:t,observations:[...n],x:r,y:i,group:o});return SH(l,0===e.length?1:e.length)}default:{let{partitionKeys:e}=yW({observations:[...n],group:o});return SH(l,e.length)}}})({vizType:t,data:i,x:d,y:p,group:m}),[i,m,t,d,p]),P=(e=>{let{data:t,x:n,xStackLower:r,xStackUpper:i,comboPlotType:o,plotMainSize:a,innerPadding:s=0,outerPadding:u=0,xGoalValue:c,yGoalValue:d}=e,p=n?t.getType(n):gA.Decimal,h=gz(e=>e.computedConfig.type),g=(0,O.useMemo)(()=>n?[...new Set(t.getValues(n))]:[],[t,n]),f=(0,O.useMemo)(()=>yJ(p,c)&&yq(d)?[...new Set([...g,c])]:g,[c,p,g,d]),m=(0,O.useMemo)(()=>xy({vizType:h,orientation:l.X,comboPlotType:o,values:f,dataType:p,range:[0,a],innerPadding:s,outerPadding:u}),[s,u,a,o,p,f,h]),y=(0,O.useMemo)(()=>xm({data:t,dimensionSize:a,lowerKey:r,upperKey:i}),[t,a,r,i]),x=(0,O.useMemo)(()=>xj({orientation:l.X,vizType:h,comboPlotType:o,scale:m,dataType:p,getValue:e=>e[n]}),[h,o,n,m,p]),b=(0,O.useMemo)(()=>{let e=xy({orientation:l.X,vizType:h,comboPlotType:o,values:f,dataType:p,range:[0,300],innerPadding:s,outerPadding:u});return xj({orientation:l.X,vizType:h,comboPlotType:o,scale:e,dataType:p,getValue:e=>e[n]})},[s,u,h,o,n,p,f]),C=(0,O.useMemo)(()=>xA({scale:m,dataType:p}),[m,p]),v=xu(m)&&d1(p),j="bandwidth"in m;return{xScale:m,xStackScale:y,getXPosition:x,getXAxisPosition:C,getNonResponsiveXPosition:b,hasPositiveAndNegativeXValues:v,xType:p,xValues:g,isBandScale:j,get xBandwidth(){return j?m.bandwidth():null},get xStep(){return j?m.step():null},get xBandOuterPadding(){return j?m.paddingOuter():null}}})(Object.assign(Object.assign({data:i,x:d,xStackLower:y,xStackUpper:x,comboPlotType:A,plotMainSize:w},S),{xGoalValue:a,yGoalValue:s})),L=(0,O.useMemo)(()=>(e=>{let{xScale:t,xBandwidth:n,xType:r,plotMainSize:i}=e,o=((e,t,n)=>{if(null!==t){let r=e.domain().length>=1?e.domain()[0]:void 0,i=r&&null!==t?e(r):void 0;if(void 0!==i)return[i,n-i-(null!=t?t:0)]}return[0,n]})(t,n,i),l=((e,t)=>{if(!dq(t)||e.domain().length<1)return null;let n=e.domain().map(e=>{try{let t=ym(e);return t?fi(t):null}catch(e){return null}}).filter(c5),r=n[0],i=n[n.length-1];return r&&i?[r,i]:null})(t,r),a=l?(0,Z.A)().domain(l).range(o):(0,Z.A)();return{timeseriesBarScale:a,getTimeseriesBarAxisPosition:e=>null===e?null:a(fi(e))+(null!=n?n:0)/2}})({xScale:P.xScale,xBandwidth:P.xBandwidth,xType:P.xType,plotMainSize:w}),[w,P.xBandwidth,P.xScale,P.xType]),M=(0,O.useMemo)(()=>(e=>{let{vizType:t,xType:n,xValues:r}=e;try{let e=r.filter(c5).map(fi);return SV.includes(t)&&dq(n)&&n!==gA.WeeklyDateRange&&n!==gA.WeeklyDateRangeWithYear&&(e=>{if(e.length<2)return!0;let t=SF(e[0],e[1]);if(!t)return!1;for(let n=1;n(e=>{let t,{vizType:n,comboPlotType:r,data:i,x:o,y:l,group:a,shouldStartFromZero:s,customStartFrom:u,customEndAt:c,yGoalValue:d,comboPlotAxisCount:p}=e,h="number"==typeof u?"custom":s?"zero":"auto";if(yp(a)){if(void 0!==o&&y1.includes(n))return y0({vizType:n,data:i,x:o,y:l,group:a,yGoalValue:d,customEndAt:c});if("combo"===n){if("grouped-bars"===r||"lines"===r)return(e=>{var t,n;let{data:r,y:i,group:o,startFrom:l,customStartFrom:a,customEndAt:s,comboPlotAxisCount:u,yGoalValue:c}=e,{primaryDomainKeys:d}=y$(yy({data:r,group:o}),u),p=[...r].filter(e=>d.includes(yg(e[o[0].variableKey]))).map(e=>e[i]).filter(c5).map(fr);yq(c)&&(p=[...p,c]);let h=[null!=(t=(0,ea.A)(p))?t:0,null!=(n=(0,el.A)(p))?n:0],g=null!=s?s:h[1];return"zero"===l?[Math.min(0,h[0]),Math.max(0,g)]:"custom"===l&&"number"==typeof a?[Math.min(h[0],a),Math.max(g,a)]:h})({data:i,y:l,group:a,comboPlotAxisCount:p,customStartFrom:u,customEndAt:c,startFrom:"grouped-bars"===r||"zero"===h&&"lines"===r?"zero":h,yGoalValue:d});if(void 0!==o&&"stacked-bars"===r){let{secondaryGeomKey:e}=y$(yy({data:i,group:a}),p);return y0({vizType:n,data:i,x:o,y:l,group:a,yGoalValue:d,secondaryGeomKey:e,comboPlotAxisCount:p})}}}return"heatmap"===n?(t=i.getValues(l),(0,es.A)(t,yg)):"waterfall"===n?(e=>{let{data:t,y:n,startFrom:r,customStartFrom:i,customEndAt:o}=e,l=t.getValues(n).filter(c5).map(fr).slice(0,-1),a=0,s=1/0,u=-1/0;for(let e of l)(a+=e)>u&&(u=a),a{let{data:t,y:n,vizType:r,startFrom:i,customStartFrom:o,customEndAt:l,yGoalValue:a}=e,s=t.getValues(n);yq(a)&&(s=[...s,a]);let u=(0,eo.A)(s.filter(c5),fr),c=void 0===u[0]&&void 0===u[1]?[0,0]:u,d=null!=l?l:c[1],p=null!=o?o:c[0];return[...dh,...dg,"funnel"].includes(r)||"zero"===i?[Math.min(0,p),Math.max(0,d)]:[p,d]})({data:i,y:l,vizType:n,startFrom:h,customStartFrom:u,customEndAt:c,yGoalValue:d})})({vizType:t,comboPlotType:A,data:i,x:d,y:p,group:m,shouldStartFromZero:null==o?void 0:o.shouldStartFromZero,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt,comboPlotAxisCount:null==o?void 0:o.comboPlotAxisCount,yGoalValue:s}),[t,A,i,d,p,m,null==o?void 0:o.shouldStartFromZero,null==o?void 0:o.customYAxisStartFrom,null==o?void 0:o.customYAxisEndAt,null==o?void 0:o.comboPlotAxisCount,s]),I=(e=>{let{flipAxes:t,y:n,yStackLower:r,yStackUpper:i,yValue:o,data:a,plotCrossSize:s,domain:u,useLogScale:c,customStartFrom:d,customEndAt:p}=e,h=gz(e=>e.computedConfig.type),g=gz(e=>e.computedConfig.comboPlotType),f=a.getType(n),m=(0,O.useMemo)(()=>xy({vizType:h,orientation:l.Y,comboPlotType:g,dataType:f,customDomain:u,customStartFrom:d,customEndAt:p,range:xV(h,s,t),useLogScale:c}),[p,d,u,t,s,g,c,f,h]),y=(0,O.useMemo)(()=>xm({data:a,dimensionSize:s,lowerKey:r,upperKey:i}),[a,s,r,i]),x=(0,O.useMemo)(()=>xj({orientation:l.Y,comboPlotType:g,vizType:h,scale:m,dataType:f,getValue:e=>e[n]}),[g,h,n,m,f]),b=(0,O.useMemo)(()=>{let e=xy({vizType:h,orientation:l.Y,comboPlotType:g,dataType:f,customDomain:u,customStartFrom:d,customEndAt:p,range:xV(h,300,t),useLogScale:c});return xj({orientation:l.Y,comboPlotType:g,vizType:h,scale:e,dataType:f,getValue:e=>e[n]})},[p,d,u,t,g,c,n,f,h]),C="ticks"in m?m(0):null,v=(0,O.useMemo)(()=>xA({scale:m,dataType:f}),[m,f]),j=xu(m),A=(0,O.useMemo)(()=>xj({orientation:l.Y,comboPlotType:g,vizType:h,scale:m,dataType:f,getValue:e=>{if(!o||!n)return 0;let t=e[o],r=e[n];return"number"==typeof t&&"number"==typeof r&&t!==r?r-t:fr(m.domain()[0])}}),[g,h,n,m,f,o]),w=(0,O.useMemo)(()=>a.exists(xL)?xj({orientation:l.Y,vizType:h,comboPlotType:g,scale:m,dataType:a.getType(xL),getValue:e=>e[xL]}):x,[a,x,g,h,m]),k=(0,O.useMemo)(()=>a.exists(xM)?xj({orientation:l.Y,vizType:h,comboPlotType:g,scale:m,dataType:a.getType(xM),getValue:e=>e[xM]}):x,[a,x,g,h,m]);return{yScale:m,yStackScale:y,getYPosition:x,yOrigin:C,getLowerYPosition:A,getYAxisPosition:v,getNonResponsiveYPosition:b,hasPositiveAndNegativeYValues:j,get yBandwidth(){return"heatmap"===h&&dQ(f)?m.bandwidth():null},getYStartPosition:w,getYEndPosition:k}})({flipAxes:null!=c&&c,y:p,yValue:f,yStackLower:b,yStackUpper:C,data:i,plotCrossSize:k,domain:D,useLogScale:null==o?void 0:o.useLogScale,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt}),E=(e=>{let{property:t,data:n}=e;return(0,O.useMemo)(()=>{let e=((e,t)=>t?[...new Set(e.getValues(t))]:[])(n,t),r=(e=>{let{values:t=[],range:n}=e,r=(e=>{let t=(0,eo.A)(e.filter(c5),fr);return void 0===t[0]||void 0===t[1]?[0,0]:t})(t);return(0,U.A)().domain(r).range(n)})({values:e,range:[0,1]});return{sizeScale:r,sizeValues:e,getSize:e=>{let n=t?e[t]:null;return r(null===n?0:fr(n))}}},[t,n])})({property:h,data:i}),H=(0,O.useMemo)(()=>(e=>{let{data:t,y:n,group:r,comboPlotType:i,hasSecondaryAxis:o,shouldStartFromZero:l,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c}=e;if(!o||!yp(r))return[0,0];let d="number"==typeof a?"custom":l?"zero":"auto";return(e=>{var t,n;let{data:r,y:i,group:o,startFrom:l,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c}=e,{secondaryDomainKey:d}=y$(yy({data:r,group:o}),c);if(!d)return[0,0];let p=[...r].filter(e=>yg(e[o[0].variableKey])===d).map(e=>e[i]).filter(c5).map(fr);yq(u)&&(p=[...p,fr(u)]);let h=[null!=(t=(0,ea.A)(p))?t:0,null!=(n=(0,el.A)(p))?n:0],g=null!=s?s:h[1];return"zero"===l?[Math.min(0,h[0]),Math.max(0,g)]:"custom"===l&&"number"==typeof a?[Math.min(h[0],a),Math.max(g,a)]:h})({data:t,y:n,group:r,startFrom:"lines"===i&&"zero"===d||"lines"!==i?"zero":d,customStartFrom:a,customEndAt:s,yGoalValue:u,comboPlotAxisCount:c})})({data:i,y:p,group:m,comboPlotType:A,hasSecondaryAxis:T,shouldStartFromZero:null==o?void 0:o.shouldStartFromZero,customStartFrom:null==o?void 0:o.customYAxisStartFrom,customEndAt:null==o?void 0:o.customYAxisEndAt,comboPlotAxisCount:null==o?void 0:o.comboPlotAxisCount,yGoalValue:s}),[i,m,A,T,null==o?void 0:o.comboPlotAxisCount,null==o?void 0:o.customYAxisEndAt,null==o?void 0:o.customYAxisStartFrom,null==o?void 0:o.shouldStartFromZero,p,s]),V=(e=>{let{flipAxes:t,vizType:n,comboPlotType:r,y:i,data:o,plotCrossSize:a,domain:s,useLogScale:u}=e,c=i?o.getType(i):gA.Decimal,d=(0,O.useMemo)(()=>xy({vizType:n,orientation:l.Y,comboPlotType:r,dataType:c,range:xV(n,a,t),customDomain:s,useLogScale:u}),[s,t,a,r,u,c,n]),p=(0,O.useMemo)(()=>xj({orientation:l.Y,vizType:n,comboPlotType:r,scale:d,dataType:c,getValue:e=>e[i]}),[r,d,i,c,n]),h=(0,O.useMemo)(()=>xA({scale:d,dataType:c}),[d,c]);return{secondaryYScale:d,getSecondaryYPosition:p,getSecondaryYAxisPosition:h,getNonResponsiveSecondaryYAxisPosition:(0,O.useMemo)(()=>{let e=xy({orientation:l.Y,comboPlotType:r,vizType:n,dataType:c,range:xV(n,300,t),customDomain:s,useLogScale:u});return xj({orientation:l.Y,vizType:n,comboPlotType:r,scale:e,dataType:c,getValue:e=>e[i]})},[s,t,r,n,u,i,c])}})({flipAxes:null!=c&&c,vizType:t,y:p,data:i,comboPlotType:A,plotCrossSize:k,domain:H,useLogScale:null==o?void 0:o.useLogScale}),{_setXValues:F,_setYDomain:B,_setSecondaryYDomain:z}=SD();(0,O.useEffect)(()=>{F(P.xValues.map(ym))},[F,P.xValues]),(0,O.useEffect)(()=>{B(D)},[B,D]),(0,O.useEffect)(()=>{z(H)},[z,H]);let R=(0,O.useMemo)(()=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({flipAxes:null!=c&&c},P),L),{isTimeseriesBarAxis:M,hasSecondaryAxis:T}),I),V),E),{options:o}),[c,P,L,M,T,I,V,E,o]);return(0,g.jsx)(SL.Provider,{value:R,children:n})},Sz=(0,h.I4)(ep.P.div)(oy()),SR=h.I4.div(oC(),e=>{let{$isRotated:t}=e;return t?(0,h.AH)(ox()):(0,h.AH)(ob())}),SY=hz(.4),SG=hz(.3),SW=h.I4.div(oj(),sb,uA("textPrimary"),e=>{let{$isDimmed:t}=e;return t?.5:1},e=>{let{$isFilled:t}=e;return t&&(0,h.AH)(ov(),sV.sm,SY,SG)}),SU=e=>{let{isFilled:t,isDimmed:n,textColor:r,backgroundColor:i,children:o}=e;return(0,g.jsx)(SW,{$isFilled:t,$isDimmed:n,style:{color:r,backgroundColor:i},children:o})},SN=O.memo(function(e){let{isFilled:t,textColor:n,backgroundColor:r,isDimmed:i,formattedLabel:o,fits:l,isRotated:a,xPosition:s,yPosition:u}=e,{flipAxes:c}=SM();return l?(0,g.jsx)(Sz,{initial:!1,animate:{[c?"y":"x"]:s,[c?"x":"y"]:u},transition:f_,children:(0,g.jsx)(SR,{$isRotated:a,children:(0,g.jsx)(SU,{isFilled:null!=t&&t,textColor:n,backgroundColor:r,isDimmed:i,children:o.rich})})}):null}),SK=(0,h.I4)(ep.P.div)(oA()),SZ=m7[0],SX="solid",S_="diagonal-hatch-pattern",SQ=()=>{let{values:e}=ma();return(0,g.jsx)("pattern",{id:S_,patternUnits:"userSpaceOnUse",patternTransform:"rotate(-45)",width:"20",height:"10",x:"0",y:"0",children:(0,g.jsx)("rect",{x:"0",y:"0",width:"20",height:"5",fill:e.grey100,fillOpacity:.5})})},SJ=()=>"url(#".concat(S_,")"),Sq=e=>{let{flipAxes:t,bandwidth:n,position:r,start:i,end:o,opacity:l,fill:a=SZ,fillType:s=SX,roundCorners:u=!0,isDimmed:c=!1,backgroundColor:d}=e,{highlightStyle:p,dimAmount:h}=yM(),f=S$(t,n,r,i,o),m=xr({theme:ma(),fill:a,opacity:l,isDimmed:c,highlightStyle:p,backgroundColor:d,dimAmount:h}),y="number"==typeof u?u:u?xt(n):0;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ep.P.rect,{initial:!1,animate:f,transition:f_,fill:m,rx:y,role:"graphics-symbol img","aria-roledescription":"bar","aria-label":"Bar"}),"hatched"===s&&(0,g.jsx)(ep.P.rect,{initial:!1,animate:f,transition:f_,fill:SJ(),rx:y})]})},S$=(e,t,n,r,i)=>({[e?"y":"x"]:n,[e?"x":"y"]:Math.min(i,r),[e?"height":"width"]:Math.max(t,0),[e?"width":"height"]:Math.max(Math.abs(r-i),0)}),S1=e=>{var{shapeId:t,blur:n}=e,r=s$(e,["shapeId","blur"]);let i="neon-blur-".concat((0,O.useId)()),o="url(#".concat(i,")");return(0,g.jsxs)(g.Fragment,{children:[S2(i,n),(0,g.jsx)("use",Object.assign({href:"#".concat(t),filter:o},r))]})},S0=e=>{let{blur:t}=e,n="neon-blur-".concat((0,O.useId)());return{neonFilter:"url(#".concat(n,")"),renderDefs:()=>S2(n,t)}},S2=(e,t)=>(0,g.jsx)("defs",{children:(0,g.jsxs)("filter",{id:e,colorInterpolationFilters:"sRGB",children:[(0,g.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,g.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,g.jsx)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:t})]})}),S5=e=>{var{flipAxes:t,mainPosition:n,crossPosition:r,size:i,fill:o,stroke:l,strokeWidth:a,hasShadow:s,effect:u,opacity:c,includeOuterBorder:d,backgroundColor:p}=e,h=s$(e,["flipAxes","mainPosition","crossPosition","size","fill","stroke","strokeWidth","hasShadow","effect","opacity","includeOuterBorder","backgroundColor"]);let f=S3(t,n,r,i),m=s?S7():{},y=(0,O.useId)();return(0,g.jsxs)(g.Fragment,{children:["neon"===u&&(0,g.jsx)(S1,{shapeId:y,blur:2}),d&&(0,g.jsx)(ep.P.circle,{id:y,initial:!1,transition:f_,stroke:p,fill:o,variants:{animate:Object.assign(Object.assign({},f),{opacity:c,r:f.r+1.5})},animate:"animate",strokeWidth:1.5}),(0,g.jsx)(ep.P.circle,Object.assign({id:y,strokeWidth:a,initial:!1,transition:f_,stroke:l,fill:o,variants:{animate:Object.assign(Object.assign({},f),{opacity:c})},animate:"animate",style:m},h))]})},S3=(e,t,n,r)=>({cx:e?n:t,cy:e?t:n,r:r/2}),S7=()=>({filter:"\n drop-shadow(0 0 4px rgba(15, 15, 24, 0.12))\n drop-shadow(0 4px 4px rgba(14, 14, 52, 0.08))\n "}),S9=e=>{var{observations:t,lineGenerator:n,color:r,clipPath:i,lineType:o="solid",isDimmed:l,effect:a,backgroundColor:s,lineThickness:u,showPoints:c,yAxisScale:d="primary"}=e,p=s$(e,["observations","lineGenerator","color","clipPath","lineType","isDimmed","effect","backgroundColor","lineThickness","showPoints","yAxisScale"]);let{getXPosition:h,xBandwidth:f,getYPosition:m,getSecondaryYPosition:y}=SM(),x=x$("plotWidth"),b=mr("textScale"),C=(0,O.useMemo)(()=>n(t),[n,t]),v=yQ(null!=C?C:"M0,0",f_),{neonFilter:j,renderDefs:A}=S0({blur:3}),{isPointHighlighted:w}=yM(),k=S8({color:r,isDimmed:l,backgroundColor:s}),S=Pe({color:r,backgroundColor:s});if(!C)return null;let P=null!=u?u:S4(b,x,t),L=xl(P,o),M="primary"===d?m:y,T=Object.assign(Object.assign({stroke:k},L),{d:v,clipPath:i,fill:"none"});return(0,g.jsxs)(g.Fragment,{children:["neon"===a&&A(),"neon"===a&&(0,g.jsx)(ep.P.path,Object.assign({},T,{strokeWidth:2*P,filter:j})),(0,g.jsx)(ep.P.path,Object.assign({},p,T)),t.map((e,t)=>{let n=w(e);if(!c&&!n)return null;let r=h(e)+(null!=f?f:0)/2,i=M(e),o=S6(P,n),s=l&&!w(e);return(0,g.jsx)(S5,{strokeWidth:.5*P,effect:a,hasShadow:n,mainPosition:r,crossPosition:i,size:o,fill:s?S.dimmedFill:S.defaultFill,stroke:s?S.dimmedStroke:S.defaultStroke},"".concat(t,"-").concat(k))})]})},S4=(e,t,n)=>n.length?2.5*Math.max(.4,Math.min(1,t/n.length/10))*e:1,S6=(e,t)=>Math.max(3,e*(t?3:2)),S8=e=>{let t=ma(),{highlightStyle:n,dimAmount:r}=yM(),{color:i=SZ,isDimmed:o,backgroundColor:l}=e;return(0,O.useMemo)(()=>xa({theme:t,color:i,isDimmed:o,highlightStyle:n,backgroundColor:l,dimAmount:r}),[t,i,o,n,l,r])},Pe=e=>{let t=ma(),{highlightStyle:n}=yM(),{color:r=SZ,backgroundColor:i}=e;return(0,O.useMemo)(()=>{let e=xa({theme:t,color:r,isDimmed:!1,highlightStyle:n,backgroundColor:i}),o=uP(t.values.grey0,e,.6),l=xa({theme:t,color:r,isDimmed:!0,highlightStyle:n,backgroundColor:i});return{defaultFill:e,defaultStroke:o,dimmedFill:l,dimmedStroke:uP(t.values.grey0,l,.6)}},[t,r,n,i])},Pt={solid:{strokeWidth:1},dashed:{strokeWidth:1,strokeDasharray:"4 4"},gridLine:{strokeWidth:1,strokeDashoffset:"0",strokeDasharray:"2 3",strokeLinecap:"round"},tickLine:{strokeWidth:1,strokeDashoffset:"-1",strokeDasharray:"2 3",strokeLinecap:"round"},targetLine:{strokeWidth:1,strokeDasharray:"2 3",strokeLinecap:"round",strokeMiterlimit:16}},Pn=e=>{let{orientation:t,origin:n,end:r,crossOrigin:i,stroke:o,ruleStyle:a="solid"}=e,s=Object.assign({stroke:o,pointerEvents:"none",fill:"transparent"},Pt[a]);return t===l.X?(0,g.jsx)("line",Object.assign({},s,{x1:n||0,y1:i,x2:r,y2:i})):(0,g.jsx)("line",Object.assign({},s,{x1:i,y1:n||0,x2:i,y2:r}))},Pr=e=>{let{observations:t,areaGenerator:n,color:r=SZ,backgroundColor:i,clipPath:o,flipAxes:l,variant:a="solid",isDimmed:s}=e,u=Pi({backgroundColor:i,color:r,isDimmed:s}),c="area_gradient_".concat((0,O.useId)()),d=n(t),p=yQ(null!=d?d:"M0,0",f_);if(!d)return null;let h="solid"===a?u:"url(#".concat(c,")");return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:c,gradientTransform:"rotate(".concat(l?180:90," 0.5 0.5)"),children:[(0,g.jsx)("stop",{offset:"0%",stopColor:r}),(0,g.jsx)("stop",{offset:"70%",stopColor:r,stopOpacity:0}),(0,g.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:0})]})}),(0,g.jsx)(ep.P.g,{clipPath:o,children:(0,g.jsx)(ep.P.path,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},exit:{opacity:0},d:p,stroke:"none",fill:h,fillOpacity:s?"solid"===a?.1:.04:"solid"===a?.3:.15,role:"graphics-symbol img","aria-roledescription":"area"})})]})},Pi=e=>{let t=ma(),{highlightStyle:n,dimAmount:r}=yM(),{color:i=SZ,isDimmed:o,backgroundColor:l}=e;return(0,O.useMemo)(()=>xa({theme:t,color:i,isDimmed:o,highlightStyle:n,backgroundColor:l,dimAmount:r}),[t,i,o,n,l,r])},Po=(0,O.createContext)(null),Pl=()=>{let e=(0,O.useContext)(Po);if(!e)throw Error("useVisibleSeriesContext must be used within a VisibleSeriesProvider");return e},Pa=e=>{let{data:t,group:n,label:r,vizType:i,children:o}=e,[l,a]=(0,O.useState)([]),s=(0,O.useCallback)(e=>{e&&a(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),u=(0,O.useMemo)(()=>[...t].filter(e=>{var t;let o=dm.includes(i)?r:null==(t=null==n?void 0:n[0])?void 0:t.variableKey;if(!o)return!0;let a=yg(e[o]);return!l.includes(a)}),[t,i,r,n,l]),c=(0,O.useCallback)(e=>!!e&&l.includes(e),[l]),d=(0,O.useMemo)(()=>({onToggleSeriesVisibility:s,visibleObservations:u,isHiddenSeries:c}),[s,u,c]);return(0,g.jsx)(Po.Provider,{value:d,children:o})},Ps=h.I4.div(ow(),sw),Pu=e=>{var{children:t,maxWidth:n}=e,r=s$(e,["children","maxWidth"]);return(0,g.jsx)(Ps,Object.assign({},r,{style:Object.assign(Object.assign({},r.style),{maxWidth:"".concat(n,"px")}),children:t}))},Pc=e=>{let{label:t,startValue:n,plotMaxWidth:r,plotMaxHeight:i,radius:o,total:l,maxCx:a,maxCy:s,previousLabels:u}=e,c=n+t.value/2,d=hB(c/l,o,a,s),{originX:p,originY:h}=(e=>({originX:e<.5?0:1,originY:+(e>.75||e<.25)}))(c/l),g=d.x-t.width*p,f=d.y-t.height*h;for(let e of u){let n=e.x,r=e.y,i=e.width,o=e.height;if(gn&&fr)return null}if(g<0||f<0)return Math.abs(Math.min(g,f));let m=g+t.width-r,y=f+t.height-i;return m>0||y>0?Math.abs(Math.max(m,y)):Object.assign(Object.assign({},t),{x:g,y:f})},Pd=e=>{let{radius:t,total:n,labels:r,plotMaxWidth:i,plotMaxHeight:o,maxCx:l,maxCy:a}=e,s=[],u=0,c=0;for(let e of r){let r=Pc({previousLabels:s,startValue:u,label:e,plotMaxWidth:i,plotMaxHeight:o,radius:t,total:n,maxCx:l,maxCy:a});u+=e.value,"number"==typeof r?c=Math.max(r,c):null!==r&&s.push(r)}return c>0?c:s},Pp=gH(null),Ph=e=>{let{children:t,legendPosition:n,sideLegendWidth:r=0,shouldShowLabels:i,formatDataLabel:o,value:l,label:a}=e,s=mr("chartWidth"),u=mr("chartHeight"),c=8*!!i,d=yV(),p=s-r-32*("right"===n)/2,h=.3*p,{visibleObservations:f}=Pl(),m=(0,O.useMemo)(()=>i?(e=>{let{observations:t,measureReactContent:n,labelMaxWidth:r,formatDataLabel:i,value:o,label:l}=e;return t.reduce((e,t)=>{var a;try{let s=fn(null!=(a=t.id)?a:""),u=t[o],c=l?t[l]:void 0;if(null==u||void 0===c)return e;let d=fr(u),p=i(d,c),{width:h,height:f}=n((0,g.jsx)(Pu,{maxWidth:r,children:p.rich}));e.push({id:s,formatted:p,width:h,height:f,value:d})}catch(e){}return e},[])})({observations:f,measureReactContent:d,labelMaxWidth:h,value:l,label:a,formatDataLabel:o}):[],[i,f,d,h,l,a,o]),{labels:y,labelRadius:x}=(0,O.useMemo)(()=>(e=>{let{labels:t,plotMaxWidth:n,plotMaxHeight:r}=e,i=Math.min(n,r)/2,o=t.reduce((e,t)=>e+t.value,0),l=n/2,a=r/2,s=i,u=0,c=0;for(;"number"==typeof c&&u<100;)"number"==typeof(c=Pd({radius:s,total:o,labels:t,plotMaxWidth:n,plotMaxHeight:r,maxCx:l,maxCy:a}))&&(s-=c),u++;return{labelRadius:"number"==typeof c?i:s,labels:"number"==typeof c?[]:c}})({labels:m,plotMaxWidth:p,plotMaxHeight:u}),[m,p,u]),b=x-c,C=(0,O.useMemo)(()=>(e=>{let{labels:t,pieRadius:n,plotMaxWidth:r,plotMaxHeight:i}=e,o=r/2-n,l=i/2-n,a=Math.min(o,...t.map(e=>e.x)),s=Math.max(o+2*n,...t.map(e=>e.x+e.width)),u=Math.min(l,...t.map(e=>e.y));return{isPlotMeasured:!0,plotOffsetX:a,plotOffsetY:u,plotWidth:s-a,plotHeight:Math.max(l+2*n,...t.map(e=>e.y+e.height))-u}})({labels:y,pieRadius:b,plotMaxWidth:p,plotMaxHeight:u}),[y,b,u,p]),v=p/2-C.plotOffsetX,j=u/2-C.plotOffsetY,A=O.useMemo(()=>({pieRadius:b,pieCenterX:v,pieCenterY:j,labels:y,labelMaxWidth:h}),[b,v,j,y,h]);return(0,g.jsx)(Pp.Provider,{value:A,children:(0,g.jsx)(xq.Provider,{value:C,children:t})})},Pg=e=>gV(Pp,t=>{if(!t)throw Error("usePieLayoutValue must be used within PieLayoutProvider");return t[e]}),Pf=(e,t)=>"donut"===t?.5*e:0,Pm=(e,t)=>n=>e*(1-n)+t*n,Py=e=>{let{arc:t,appearance:n,fillColor:r="transparent",isDimmed:i,fillType:o=SX,backgroundColor:l}=e,a=ma(),s=(0,O.useId)(),u=((e,t)=>{let n=(0,ec.d)(0);(0,O.useEffect)(()=>{let e=(0,ed.i)(0,1,Object.assign(Object.assign({},fJ),{onUpdate:e=>n.set(e)}));return()=>e.stop()},[n]);let r=(0,ec.d)(e.startAngle),i=(0,ec.d)(e.endAngle);(0,O.useEffect)(()=>{let t=Pm(r.get(),e.startAngle),n=Pm(i.get(),e.endAngle),o=(0,ed.i)(0,1,Object.assign(Object.assign({},f_),{onUpdate:e=>{r.set(t(e)),i.set(n(e))}}));return()=>o.stop()},[e,i,r]);let o=(e=>{let t=Pg("pieRadius"),n=Pf(t,e);return(0,q.A)().innerRadius(n).outerRadius(t).cornerRadius(.02*t)})(t),l=(0,eh.G)([n,r,i],t=>{let[n,r,i]=t;return o(Object.assign(Object.assign({},e),{startAngle:r*n,endAngle:i*n}))});return(0,eg.K)()?o(e):l})(t,n),c=Pg("pieRadius"),d=((e,t,n)=>{let{isInHighlightMode:r}=bc(),i=x4(Math.abs((t+e)/2)),o=.03*n*Math.cos(i),l=.03*n*Math.sin(i),a=(()=>{let{overlayState:{activeHitbox:e}}=yb();if(!e)return[];let{dataPoints:t}=e;return t.filter(yw)})(),s=!r&&a.some(n=>n.startAngle===e&&n.endAngle===t),u=s?o:0,c=s?l:0;return{initial:{x:u,y:c},animate:{x:u,y:c},transition:f_}})(t.startAngle,t.endAngle,c),{highlightStyle:p,dimAmount:h}=yM(),f=xa({theme:a,color:r,isDimmed:i,backgroundColor:l,highlightStyle:p,dimAmount:h});return(0,g.jsxs)(ep.P.g,Object.assign({},d,{children:[(0,g.jsx)("defs",{children:(0,g.jsx)("mask",{id:s,children:(0,g.jsx)(ep.P.path,{d:u,fill:"white",strokeWidth:3,stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,g.jsx)(ep.P.path,{d:u,fill:f,mask:"url(#".concat(s,")"),role:"graphics-symbol img","aria-roledescription":"pie slice","aria-label":"Pie slice"}),"hatched"===o&&(0,g.jsx)(ep.P.path,{d:u,fill:SJ()})]}))},Px=()=>{let{sizeValues:e}=SM(),t=mr("chartWidth");return(0,O.useMemo)(()=>{let n=Math.max(.01*t,5),r=Math.min(.07*t,80),{adjustedMin:i,adjustedMax:o}=((e,t,n)=>{if(e<=1){let e=(t+n)/2;return{adjustedMin:e,adjustedMax:e}}return{adjustedMin:t,adjustedMax:n-n*(e=>e<=3?.6:.3*(e<=6))(e)}})(e.length,n,r);return{maxSize:o,minSize:i,computeBubbleSize:e=>i+e*(o-i)}},[t,e])},Pb=(e,t,n,r)=>t/2+SY+Math.min(0,(("inside"===e?n:r)-t-2*SY)/2),PC={initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:.4,delay:.3}},Pv=e=>{let{isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,showPercentage:l=!1,formatLabel:a,numberFormat:s}=e,u=mr("overPlotPortalId"),c=x$("plotOffsetX"),d=x$("plotOffsetY"),{flipAxes:p}=SM(),h=(e=>{let{isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,formatLabel:l,shouldShowPercentage:a,numberFormat:s}=e,{hitboxes:u,overlayState:{closestGeomDataPoint:c}}=yb(),{flipAxes:d}=SM(),{isBarHighlighted:p,isHighlighted:h,isPointHighlighted:f,isStackHighlighted:m}=yM(),y=(0,O.useMemo)(()=>u.flatMap(e=>e.dataPoints),[u]),x=(e=>{let{formatLabel:t=ug,shouldShowPercentage:n,numberFormat:r}=e,i=(0,Y.A)(),o=(0,O.useCallback)(e=>{let t=fO({intl:i,value:e,numberFormat:r});return{rich:t,plain:t}},[i,r]);return(0,O.useCallback)(e=>{let r=null;return n?r=e.percentage:yA(e)?r=yj(e)?e.alphaValue:e.yValue:yw(e)&&(r=e.pieValue),n?o(r,e):t(r,e)},[t,o,n])})({formatLabel:l,shouldShowPercentage:a,numberFormat:s}),b=(()=>{let{flipAxes:e,getSize:t}=SM(),{computeBubbleSize:n}=Px(),r=gz(e=>e.computedConfig.type),i=x$("plotWidth"),o=x$("plotHeight"),l=e?i:o;return(0,O.useCallback)(i=>{let{dataPoint:o,measured:a,shouldRotate:s}=i,u={fits:!0,location:null,isRotated:!1,xPosition:0,yPosition:0};switch(o.type){case"bar":return Object.assign(Object.assign({},u),((e,t,n,r,i,o)=>{let l=y7(e.yValue),{availMainSize:a,availCrossSizeInside:s,availCrossSizeOutside:u}=((e,t,n,r)=>{let i=Math.abs(e.x0-e.x1),o=Math.abs(e.y0-e.y1);return{availMainSize:t?o:i,availCrossSizeInside:t?i:o,availCrossSizeOutside:t?n?r-e.x0:e.x1:n?e.y0:r-e.y1}})(e,r,l,i),c=r?t.height:t.width,d=r?t.width:t.height;return!n&&c<=a?d<=s?"waterfall"===o?(e=>({fits:!0,location:"inside",xPosition:e.xPosition,yPosition:e.yPosition}))(e):((e,t,n,r,i,o)=>{if("none"!==e.stackType)return{fits:!0,location:"inside",xPosition:e.x0+(e.x1-e.x0)/2,yPosition:e.y0+(e.y1-e.y0)/2};let l=Pb("inside",n,r,i);return{fits:!0,location:"inside",xPosition:t?e.xPosition+l*(o?-1:1):e.xPosition,yPosition:t?e.yPosition:e.yPosition+l*(o?1:-1)}})(e,r,d,s,u,l):"none"===e.stackType&&d<=u?"waterfall"===o?((e,t,n,r)=>({fits:!0,location:"outside",xPosition:e.xPosition,yPosition:e.yPosition-n/2-Pb("outside",t,n,r)}))(e,d,s,u):((e,t,n,r,i,o)=>{let l=t?e.xPosition:e.x0+(e.x1-e.x0)/2,a=e.yPosition,s=Pb("outside",n,r,i);return t?l+=s*(o?1:-1):a+=s*(o?-1:1),{fits:!0,location:"outside",xPosition:l,yPosition:a}})(e,r,d,s,u,l):{fits:!1}:!n||r||"waterfall"===o?{fits:!1}:c<=s?((e,t,n,r,i,o)=>{if(i>t)return{fits:!1};if("none"!==e.stackType)return{isRotated:!0,fits:!0,location:"inside",xPosition:e.x0+(e.x1-e.x0)/2,yPosition:e.y0+(e.y1-e.y0)/2-r/2};let l=Math.min(4,(n-i)/2-2*SG);return{isRotated:!0,fits:!0,location:"inside",xPosition:e.xPosition,yPosition:e.yPosition-r/2+SG+(r/2+l)*(o?1:-1)}})(e,a,s,c,d,l):"none"===e.stackType&&c<=u?((e,t,n,r,i)=>r>t?{fits:!1}:{isRotated:!0,fits:!0,location:"outside",xPosition:e.xPosition,yPosition:e.yPosition-n/2-SG+n/2*(i?-1:1)})(e,a,c,d,l):{fits:!1}})(o,a,s,e,l,r));case"line":return Object.assign(Object.assign({},u),(e=>({xPosition:e.xPosition,yPosition:e.yPosition-15}))(o));case"tile":return Object.assign(Object.assign({},u),((e,t)=>{let n=Math.abs(e.x0-e.x1),r=Math.abs(e.y0-e.y1);return t.width<=n&&t.height<=r?{xPosition:e.xPosition,yPosition:e.yPosition}:{fits:!1}})(o,a));case"pie":case"donut":return Object.assign(Object.assign({},u),((e,t)=>{let n=x6({position:.5,radius:"donut"===e.type?e.pieRadius-Pf(e.pieRadius,"donut")/2:2*e.pieRadius/3,startAngle:e.startAngle,endAngle:e.endAngle});return(e=>{let{x1:t,x2:n,y1:r,y2:i,startAngle:o,endAngle:l}=e,a=[t,i],s=[n,r],u=[n,i],c=e=>{let[t,n]=e,r=x9(Math.atan2(n,t));return r>=o&&r<=l};return c([t,r])&&c(a)&&c(s)&&c(u)})(Object.assign(Object.assign({},{x1:n.x-t.width/2,x2:n.x+t.width/2,y1:n.y-t.height/2,y2:n.y+t.height/2}),{startAngle:e.startAngle,endAngle:e.endAngle}))?{xPosition:e.pieCenterX+n.x,yPosition:e.pieCenterY+n.y}:{fits:!1}})(o,a));case"point":return Object.assign(Object.assign({},u),((e,t,n,r,i)=>{let o="bubble"===e?n(t(r.observation))/2+i.height/2:15;return{xPosition:r.xPosition,yPosition:r.yPosition-o}})(r,t,n,o,a))}},[e,l,r,t,n])})(),C=(()=>{let e=ma(),{isBarDimmed:t,isLineDimmed:n,highlightStyle:r,dimAmount:i}=yM(),o=(0,O.useCallback)((t,n)=>(e=>{let{theme:t,dataPoint:n,highlightStyle:r,isDimmed:i,dimAmount:o}=e,l=yv(n)?xr({theme:t,fill:n.vizColor,opacity:n.fillOpacity,isDimmed:i,dimAmount:o,highlightStyle:r}):n.vizColor,a=((e,t,n)=>{var r;let i;if(!yv(e)&&!yj(e)&&!yw(e))return"dark";try{i=eq.Ay.mix(t.values.grey100,(0,eq.Ay)(n),yw(e)?1:null!=(r=e.fillOpacity)?r:1)}catch(e){return"dark"}return eq.Ay.contrast(i,t.values.black)>eq.Ay.contrast(i,t.values.white)?"dark":"light"})(n,t,l),s="dark"===a?t.values.black:t.values.white;return{insideLabelBackgroundColor:l,outsideLabelBackgroundColor:uw(t.values.textPrimary,"dark"===a?.1:.3),readableTextColor:s}})({theme:e,dataPoint:t,highlightStyle:r,dimAmount:i,isDimmed:n}),[e,r,i]);return(0,O.useCallback)((r,i,l)=>{switch(r.type){case"bar":{let n=t(r.observation),a=o(r,n);return{backgroundColor:"outside"===i?a.outsideLabelBackgroundColor:a.insideLabelBackgroundColor,textColor:"outside"===i?e.values.textPrimary:a.readableTextColor,isFilled:"outside"===i||!l,isDimmed:n}}case"line":case"point":{let t=n(r.observation);return{backgroundColor:o(r,t).outsideLabelBackgroundColor,textColor:e.values.textPrimary,isFilled:!0,isDimmed:t}}case"tile":return{textColor:o(r,!1).readableTextColor,isDimmed:!1};case"pie":case"donut":{let e=o(r,!1);return{backgroundColor:e.insideLabelBackgroundColor,textColor:e.readableTextColor,isFilled:!0,isDimmed:!1}}}},[t,n,e,o])})(),v=yV();return(0,O.useMemo)(()=>{let e=y.filter(e=>(e=>{var t;let{isHovered:n,isEditable:r,isDefaultVisible:i,vizType:o,annotations:l,getDataPointId:a,dataPoint:s,isBarHighlighted:u,isStackHighlighted:c,isPointHighlighted:d,isHighlighted:p}=e,h=l.find(e=>!uy(e)&&um(e)&&s.id===a(e)),g="tooltip"===(null==h?void 0:h.config.type)&&void 0===h.config.caption,f="tooltip"===(null==h?void 0:h.config.type)&&void 0!==h.config.caption,m="sticker"===(null==h?void 0:h.config.type),y=yv(s)&&u(s.observation),x=yv(s)&&c(s.observation),b=yC(s)&&d(s.observation),C=null!=(t=yk(s)&&p(s.observation))&&t;switch(o){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"funnel":case"mekko":return!!yv(s)&&!g&&!m&&("none"===s.stackType||!n||!r)&&(!!i||("stacked"===s.stackType?y&&!x:y));case"line":case"areaStacked":return(i||b)&&!g&&!f&&!m;case"combo":return!(yv(s)&&"none"!==s.stackType&&n&&r)&&(i||y||b)&&!g&&!f&&!m;case"heatmap":return(!n||!r)&&i&&!g;case"pie":case"donut":case"waterfall":return i&&!g;case"scatter":case"bubble":return(i||C)&&!g&&!f&&!m;default:return!1}})({isHovered:(null==c?void 0:c.id)===e.id,isEditable:t,isDefaultVisible:n,vizType:r,annotations:i,getDataPointId:o,dataPoint:e,isBarHighlighted:p,isHighlighted:h,isPointHighlighted:f,isStackHighlighted:m})).map(e=>{let t=x(e);return{dataPoint:e,formattedLabel:t,measured:v((0,g.jsx)(SU,{isFilled:!0,children:t.rich}))}}),l=y[0]&&yv(y[0])?Math.abs(y[0].x0-y[0].x1):0,a=e.reduce((e,t)=>{let{measured:n}=t;return Math.max(e,n.width)},0)>l&&!d;return e.map(e=>{let{dataPoint:t,measured:n,formattedLabel:r}=e,{fits:i,isRotated:o,xPosition:l,yPosition:s,location:u}=b({dataPoint:t,measured:n,shouldRotate:a});return{dataPoint:t,formattedLabel:r,appearance:C(t,u,o),fits:i,isRotated:o,xPosition:d?s:l,yPosition:d?l:s}})},[c,y,d,n,t,r,i,o,p,h,f,m,x,v,b,C])})({vizType:r,annotations:i,getDataPointId:o,formatLabel:a,shouldShowPercentage:l,isDefaultVisible:n,isEditable:t,numberFormat:s});return(0,g.jsx)(md,{container:document.getElementById(u),id:"dataLabelsAddon",zIndex:f6.dataLabels,resetFontSize:!1,children:(0,g.jsx)(SK,Object.assign({},PC,{style:{transform:"translate(".concat(c,"px, ").concat(d,"px)")},children:h.map(e=>{var{dataPoint:t,appearance:n}=e,r=s$(e,["dataPoint","appearance"]);return(0,g.jsx)(SN,Object.assign({},n,r),t.id)})}),"".concat(r,"-").concat(p))})},Pj=hN(1),PA=h.I4.div(ok(),sC,uA("grey100"),uA("textPrimary"),uA("grey60"),hK(.2),hK(.4),sV.sm),Pw=e=>{let{stackEdge:t,formattedTotalValue:n}=e,{flipAxes:r}=SM();return(0,g.jsx)(PA,{style:{transform:(e=>{let{flipAxes:t,stackEdge:n}=e;return t&&"leading"===n?"translate(-100%, -50%) translateX(-".concat(Pj,"px)"):t&&"trailing"===n?"translateY(-50%) translateX(".concat(Pj,"px)"):t||"leading"!==n?t||"trailing"!==n?"":"translateX(-50%) translateY(".concat(Pj,"px)"):"translate(-50%, -100%) translateY(-".concat(Pj,"px)")})({flipAxes:r,stackEdge:t})},children:n.rich})},Pk=(0,h.I4)(ep.P.div)(oS()),PS=(0,h.I4)(ep.P.div)(oP()),PP=e=>{let{isDefaultVisible:t,isStackHighlighted:n,stack:r}=e;return!!t||r.some(e=>n(e.observation))},PL=e=>e.reduce((e,t)=>null===t.yValue?e:e+fr(t.yValue),0),PM=e=>{var t,n,r,i;let{stack:o,flipAxes:l}=e;return{stackLeadingEdge:null!=(n=null==(t=(0,A.A)(o,e=>e[l?"x0":"y0"]))?void 0:t[l?"x0":"y0"])?n:null,stackTrailingEdge:null!=(i=null==(r=(0,w.A)(o,e=>e[l?"x1":"y1"]))?void 0:r[l?"x1":"y1"])?i:null}},PO=e=>{var t,n,r,i;let{flipAxes:o,stack:l,stackLeadingEdge:a,stackTrailingEdge:s}=e,u=l.every(e=>null===e.yValue||0>=fr(e.yValue));return o?{x:u?a:s,y:null!=(n=null==(t=l[0])?void 0:t.yPosition)?n:0,stackEdge:u?"leading":"trailing"}:{x:null!=(i=null==(r=l[0])?void 0:r.xPosition)?i:0,y:u?s:a,stackEdge:u?"trailing":"leading"}},PT={initial:{opacity:0},animate:{opacity:1},transition:{type:"spring",bounce:0,duration:.4}},PD=e=>{let{isDefaultVisible:t,formatTotalValue:n}=e,r=mr("overPlotPortalId"),i=x$("plotOffsetX"),o=x$("plotOffsetY"),l=(e=>{let{isDefaultVisible:t,formatTotalValue:n=ug}=e,{hitboxes:r}=yb(),{flipAxes:i}=SM(),{isStackHighlighted:o}=yM(),l=(0,O.useMemo)(()=>{let e=r.flatMap(e=>e.dataPoints).filter(yv).filter(e=>"stacked"===e.stackType);return[...(0,ei.Ay)(e,e=>e[i?"yPosition":"xPosition"]).values()]},[i,r]);return(0,O.useMemo)(()=>{let e=[];for(let r of l){let{stackLeadingEdge:l,stackTrailingEdge:a}=PM({stack:r,flipAxes:i});null!==l&&null!==a&&e.push(Object.assign({isVisible:PP({isDefaultVisible:t,stack:r,isStackHighlighted:o}),formattedTotalValue:n(PL(r))},PO({flipAxes:i,stack:r,stackLeadingEdge:l,stackTrailingEdge:a})))}return e},[i,n,t,o,l])})({isDefaultVisible:t,formatTotalValue:n});return 0===l.length?null:(0,g.jsx)(md,{container:document.getElementById(r),id:"stackTotalsAddon",zIndex:f6.dataLabels,resetFontSize:!1,children:(0,g.jsx)(Pk,Object.assign({},PT,{style:{transform:"translate(".concat(i,"px, ").concat(o,"px)")},children:l.filter(e=>{let{isVisible:t}=e;return t}).map(e=>{let{x:t,y:n,stackEdge:r,formattedTotalValue:i}=e;return(0,g.jsx)(PS,{initial:!1,animate:{x:t,y:n},transition:f_,children:(0,g.jsx)(Pw,{stackEdge:r,formattedTotalValue:i})},"".concat(t,"-").concat(n))})}))})},PI=h.I4.svg(oL());h.I4.div(oM(),uA("grey0"));let PE=e=>{let{highlightType:t,dataPoint:n,isBarHighlighted:r,isPointHighlighted:i,isSeriesHighlighted:o,isHighlighted:l}=e;if(yv(n))return r(n.observation);if(yC(n)){if("data-point"===t)return i(n.observation);if("series"===t)return o(n.observation)}return!!yw(n)&&!!l(n.observation)},PH=e=>{let{highlightType:t}=e,n=ma(),r=(0,O.useId)(),i="url(#".concat(r,")"),{hitboxes:o,overlayState:{activeHitbox:l,closestGeomDataPoint:a}}=yb();if(null===l||null===a||!yv(a))return null;let s=e=>o.filter(yP).map(r=>{let{dataPoints:i}=r;return i.filter(yv).map(r=>PV(t,r,a)?(0,g.jsx)("rect",Object.assign({x:r.x0,y:r.y0,width:r.x1-r.x0,height:r.y1-r.y0},e?{fill:"black"}:{fill:"none",stroke:n.values.grey0,strokeWidth:2}),r.id):null)});return(0,g.jsxs)(PI,{width:"100%",height:"100%",children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("mask",{id:r,x:0,y:0,width:"100%",height:"100%",maskUnits:"userSpaceOnUse",children:[(0,g.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:"white"}),s(!0)]})}),(0,g.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:n.values.grey100,fillOpacity:.5,mask:i}),s(!1)]})},PV=(e,t,n)=>{switch(e){case"series":return((e,t)=>{if(!yA(e)||!yA(t))return!1;let[n,r]=[e.groupValues,t.groupValues];return n.length===r.length&&n.every((e,t)=>void 0!==r[t]&&yg(e)===yg(r[t]))})(t,n);case"x-value":return!(!yA(t)||!yA(n))&&yg(t.xValue)===yg(n.xValue);case"data-point":return t.id===n.id}},PF=h.I4.div(oO()),PB=h.I4.div(oT()),Pz=e=>{let{highlightType:t,highlightStyle:n}=e,{overlayState:{activeHitbox:r,closestGeomDataPoint:i}}=yb(),{isLineDimmed:o}=yM(),l=ma();if("data-point"!==t||null===r||null===i||!yC(i))return null;let a=xa({theme:l,color:i.vizColor,isDimmed:o(i.observation),highlightStyle:n});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(PF,{style:{transform:"translate(-50%, -50%) translate(".concat(i.xPosition,"px, ").concat(i.yPosition,"px)"),border:"1px solid ".concat(a)}}),(0,g.jsx)(PB,{style:{transform:"translate(-50%, -50%) translate(".concat(i.xPosition,"px, ").concat(i.yPosition,"px)"),backgroundColor:a}})]})},PR=h.I4.svg(oD()),PY=e=>{var t;let{highlightType:n}=e,{overlayState:{activeHitbox:r,closestGeomDataPoint:i}}=yb(),o=ma();return"series"===n&&null!==r&&null!==i&&yC(i)?(0,g.jsxs)(PR,{width:"100%",height:"100%",children:[(0,g.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:o.values.grey100,fillOpacity:.5}),(0,g.jsx)("path",Object.assign({d:null!=(t=i.generateLinePath())?t:"",fill:"none",stroke:i.vizColor},xl(4,i.lineType)))]}):null},PG=h.I4.svg(oI()),PW=()=>{let{overlayState:{closestGeomDataPoint:e}}=yb();return e&&yk(e)?(0,g.jsx)(PG,{width:"100%",height:"100%",children:(0,g.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:8,fill:"none",stroke:e.vizColor,strokeWidth:1})}):null},PU=h.I4.svg(oE()),PN=()=>{let e=ma(),{overlayState:{closestGeomDataPoint:t}}=yb();return t&&yk(t)?(0,g.jsxs)(PU,{width:"100%",height:"100%",children:[(0,g.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:e.values.grey100,fillOpacity:.6}),t.partitionDataPoints.map(e=>(0,g.jsxs)(O.Fragment,{children:[(0,g.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:5,fill:e.vizColor}),(0,g.jsx)("circle",{cx:e.xPosition,cy:e.yPosition,r:8,stroke:e.vizColor,fill:"none"})]},e.id))]}):null},PK=h.I4.svg(oH()),PZ=h.I4.path(oV(),uA("grey0")),PX=()=>{let e=ma(),{overlayState:{closestGeomDataPoint:t}}=yb(),n=(0,O.useId)(),r=gz(e=>e.computedConfig.type),i=Pg("pieRadius"),o=Pf(i,r),l=Pg("pieCenterX"),a=Pg("pieCenterY");if(!t||!yw(t))return null;let s=(0,q.A)().cornerRadius(.02*i)({endAngle:t.endAngle,startAngle:t.startAngle,innerRadius:o,outerRadius:i});return s?(0,g.jsxs)(PK,{width:"100%",height:"100%",children:[(0,g.jsx)("defs",{children:(0,g.jsx)("mask",{id:n,children:(0,g.jsx)("path",{d:s,fill:"white",strokeWidth:3,stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,g.jsx)("rect",{x:0,y:0,width:"100%",height:"100%",fill:e.values.grey100,fillOpacity:.6}),(0,g.jsx)("g",{transform:"translate(".concat(l," ").concat(a,")"),children:(0,g.jsx)(PZ,{d:s,fill:t.vizColor,mask:"url(#".concat(n,")"),strokeWidth:8})})]}):null},P_=h.I4.div(oF()),PQ=e=>{switch(e){case"inactive":document.body.style.cursor="";break;case"highlight":document.body.style.cursor='image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJMSURBVHgBrZXPa9NgGMefN1uqA3tq/4CCEcSIiLl4mcaDiGIPHop48aJTMGxQD4Kw6pjs0op6EJrhzl68Fa+zPTkPvVioknoYWlbpoeLG2qT5Qfa+2d4t7dL86PaF8PLmTZ5Pnuf75H0BjiYEIE4ahrFoGGYJjyVVVR9kMpkJOE4pipK0LOu7PaRuV13Cy8cCQ27IxkbLzj59ZhcK71yw7pI7s3GoqFpVEjzPrTIMc6HV+gszjyVIpVLwde0bNBq/4Jp4BViWnU6n0xN4rGDZEFUkE+xFjWZy6/YdO/fyle2ev9ibE7Xb7RvgeBktk5EQKnq/KK84816v9xEiVA5DqoEQqsLrt/bDmSe0MdYAQnYhgbiN94PI8gdnnTxHpCjr2VDt7uXJxUuX9wP5QVS1/yMeF5IQ4BFuYe9MisuDAUdBstkcLwgCGwBRfMvlhh2GaD9nZxfOcdzNE+DviRLKeAKbvnr9EESSFnmez8QgQEjXtffjGE/KJUk5DOEDISAIj1jTNP+QF+/eux8ZEliuA/Ex7M0meZmURd778fwhxJPn2BMuLASgVlPOUpC8vOK0shvmBSHdFapcVM1m8wyG/CYBSqXPDoReBDa6uyJkQqRputMEX8qVAUi+8MYBeEHCdNewUKfzL2+H0BjGD2p+Pn+60/m/OhzYNK0tOjYa68W5uYXzkTyBoT1IFMXJer2b7PetUwjpOHQMr2uAEIMPrpP4YuypKWM7keA26/VPOkSQ12bH4L8J77Ya2g1OPiC+f0KWyxULIYh8Yu4ARrZxdpMsCmcAAAAASUVORK5CYII=") 1x, url("data:image/png;base64,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") 2x) 9 15, pointer';break;case"unhighlight":document.body.style.cursor='image-set(url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATkSURBVHgBjVV7TFNXGO+9vfQ5qGUTcchjlckWUHmEbYSHFEYHzD9gsZ1DGTWZIqLRoIMukNllQ0VMnCuIBHVO5gDdAhgI6oQWcHFuwJQsSKGsSQdulrTYru3tuztHe5e2K8UvOem55/H9zu/7ft9XEimwIWKxGIUDzn03XS4Xkp2djeG4ZafD4aiDw2Aw8Ph8Ppn0vAadq9XqJLeD4waD2csBBBkbG2PZ7XYJmF/3HDiOlz4XGHRiNpt5vg50Ol2+24EXCFjvOCNpqf6hu1dMnAXMSsG5/8BQf0ACgQAlk8k5cC5pauEcO34yDs5DQkL2tba28vr6+lYlJiZ+Ac5E6/V64/6DR4ZYrOCgnt6+hW/aO+7Bs0wmkw+YlRDM/AItLi4iVqvV7OZHuvZ99wYCjM1mVxQUFJzyBMnN2RJWVrqjvLnp9EeDQ1I1AUaj0fjNzc2bYAT8xjE1NRWJjNxgjY5+OePNN1KXtEtLECxOq9UimZnpGgRBmL4g4FoklUKJ4OXlxkiaz0mZTIZt/XpOGIqi5Pr6+nt+gaampkijo5NPtm59h8Zms17NzEjXTD2cZgzcuMWBYJs3b1R5gMBccIi7FEoQDUERxcRvk+otWemvOJ1OXC6XD5KWMyhbFiuDPTen3Esk+MDBw6rE5LdcWdm8zkuXv60Fa9MubzNKh0dOlwp374YCgXfkckUR9EUKZPBAZWVtNFBXF6Gu9KzcuxCss/OqaiUQIIazLNZGdkCp+9YJvAydtF/pkBS9974RgvX09FkDgQiFopj4+HgK9BUQBCjPC6Sj61o9+LbqdP8YtwlKrATY8PBokzeI+SlIbGwBdUUQXyZuECMRJ6A6qxsMgn5OgBiNeMuuXSIgjlgvkP/VEZAukpCQ8IFnnRQW8GK2C7YdAtsM4lxwcLBNKPzwEpiaFhb+qplRzK2F6xhGphcXc11i8U4bcOUiLWcpKSlBgM1F+LpDVTWV7Ve6YFt5slzix8cnet/Oe9eYls61/jo+IYP3QG+8ACQdEZAR6HGQ1NOXT8tnDOHhYUySd+fW3R6Snb34dftU05lTOcnJSci5lq/uMhkMm0hUlzr3h5IOinQ1h8M5wOVyyQDMLyHkzp2xKELON28NHUtMSSsZlA5/Cb5tkNmPg9JGz8QTQ6GYuw2Z5eYVGjUa7cCzGpK/RjzSi5FKpVqblpZ0FOSH/uDBpLLmk9rf4frhI6JfRkZ+agVM2i63fzcDmYAGyzSZzAvV1Y1iEIV50G5MkFl0VJRes7QU9Cxf9BegvkieIYHxtFgs5VQqtVAun13YvqNslNj7tLYmrvt6/zycEyBms2V+z566xv7+UU1+PveltrajHzMYtAjijs3m0ERGJu9//HjSBN17xh7VaDRloaGhxaQVDDKoqPjspEz2899CYbb1/Pmb1Kqqck5JSWERnU57Ua3WKk6ckPTfvy97BEoFqs8ryWh1dUO4SLR3H5sdssnTMciZGcMwGlATrlT+KWtouHBDJut8NDursAIfMDRoTEw2Rau1MJxOjIyidkdoKNWkVEothMS9qhZWsl6vXWW3Oyk4joIDToROhzs4GHQSjmNODGOY16yhGBSKASsRf3fwET5fgML/MplsNcjEVadnHfm2BwTUEQZC6NUEMex1l93+EIG/69bhDqlU6ghYjH7sX9EccpfuDcYpAAAAAElFTkSuQmCC") 1x, url("data:image/png;base64,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") 2x) 9 15, not-allowed'}},PJ=e=>{let{onHighlight:t,onRemoveHighlight:n,highlightStyle:r,getRowCategoricalValue:i,vizType:o}=e,l=mr("overPlotPortalId"),a=x$("plotOffsetX"),s=x$("plotOffsetY"),u=x$("plotWidth"),c=x$("plotHeight"),{canUserInteractWithAddon:d}=bc(),p=d("highlightEditorAddon"),{highlightType:h}=(e=>{let{onHighlight:t,onRemoveHighlight:n,getRowCategoricalValue:r}=e,{hitboxes:i,overlayState:{activeHitbox:o,closestGeomDataPoint:l}}=yb(),{selectedHighlightType:a,canUserInteractWithAddon:s,highlightEditorRef:u,setFocusedInteraction:c,restoreDefaultInteraction:d,_setSelectedHighlightType:p}=bc(),h=s("highlightEditorAddon"),g=(0,O.useCallback)(e=>{h&&(p(e),c("highlightEditorAddon"))},[p,h,c]),f=(0,O.useCallback)(()=>{h&&(p(null),d())},[p,h,d]);(0,O.useImperativeHandle)(u,()=>({enterHighlightMode:g,exitHighlightMode:f,getHighlightOptions:()=>(e=>{let t=e.some(e=>e.dataPoints.some(yv)),n=e.some(e=>e.dataPoints.some(yC)),r=e.some(e=>e.dataPoints.some(yk)),i=e.some(e=>e.dataPoints.some(yw)),o=[];if(!(t||n||r||i))return o;t&&n?o.push({label:"Point / bar",annotation:kq}):t?o.push({label:"Bar",annotation:kq}):(n||r)&&o.push({label:"Data point",annotation:kq});let{lineSeriesCount:l,barsInBarGroupOrStack:a,barSeriesCount:s,pointSeriesCount:u}=k0(e);if(t&&a>1){let t=e.some(e=>e.dataPoints.filter(yv).some(e=>"stacked"===e.stackType||"stacked-fill"===e.stackType));o.push({label:t?"Stack":"Bar group",annotation:k1})}else i&&o.push({label:"Slice",annotation:k1});return t&&n?o.push({label:"Line / series",annotation:k$}):t&&s>1?o.push({label:"Series",annotation:k$}):n&&l>1?o.push({label:"Line",annotation:k$}):r&&u>1&&o.push({label:"Series",annotation:k$}),o})(i),getRenderedHighlightedDataPoints:e=>i.flatMap(e=>e.dataPoints).filter(t=>e.includes(t.id)).filter(e=>yv(e)||yC(e)||yk(e))}));let{isBarHighlighted:m,isPointHighlighted:y,isSeriesHighlighted:x,isHighlighted:b}=yM();return(0,O.useEffect)(()=>{let e=()=>{if(h&&null!==a&&o&&l)if(PE({highlightType:a,dataPoint:l,isBarHighlighted:m,isPointHighlighted:y,isSeriesHighlighted:x,isHighlighted:b}))n(l);else{let{propertyKey:e,rowIndex:n}=pp(l.id);t({id:crypto.randomUUID(),propertyKey:e,rowIndex:n,rowValue:r(n),config:{type:"highlight",highlight:a}})}};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[o,l,a,h,t,n,r,m,y,x,b]),(e=>{let{isInteractive:t,highlightType:n,exitHighlightMode:r}=e;(0,O.useEffect)(()=>{let e=e=>{t&&null!==n&&"Escape"===e.key&&(r(),e.preventDefault())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,n,t]);let{overlayState:{activeHitbox:i,closestGeomDataPoint:o}}=yb();(0,O.useEffect)(()=>{let e=()=>{null===n||i&&o||r()};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[i,o,r,n])})({isInteractive:h,highlightType:a,exitHighlightMode:f}),((e,t)=>{let{overlayState:{activeHitbox:n,closestGeomDataPoint:r}}=yb(),{isBarHighlighted:i,isPointHighlighted:o,isSeriesHighlighted:l,isHighlighted:a}=yM();(0,O.useEffect)(()=>{if(!e||!t)return PQ("inactive");PQ(n&&r&&PE({highlightType:e,dataPoint:r,isBarHighlighted:i,isPointHighlighted:o,isSeriesHighlighted:l,isHighlighted:a})?"unhighlight":"highlight")},[n,r,e,i,a,t,o,l])})(a,h),{highlightType:a,exitHighlightMode:f}})({onHighlight:t,onRemoveHighlight:n,getRowCategoricalValue:i});return p&&null!==h?(0,g.jsx)(md,{container:document.getElementById(l),id:"highlightEditorAddon",zIndex:f6.highlightEditor,resetFontSize:!1,children:(0,g.jsxs)(P_,{style:{transform:"translate(".concat(a,"px, ").concat(s,"px)"),width:u,height:c},children:[(0,g.jsx)(PH,{highlightType:h}),(0,g.jsx)(PY,{highlightType:h}),(0,g.jsx)(Pz,{highlightType:h,highlightStyle:r}),"data-point"===h?(0,g.jsx)(PW,{}):null,"series"===h?(0,g.jsx)(PN,{}):null,"x-value"!==h||"pie"!==o&&"donut"!==o?null:(0,g.jsx)(PX,{})]})}):null},Pq=e=>({id:"highlight-editor",render:()=>(0,g.jsx)(PJ,Object.assign({},e))}),P$=(0,h.I4)(ep.P.div)(oB()),P1=h.I4.div(oz()),P0=h.I4.div(oR()),P2=(0,O.createContext)(null),P5=uE(P2,"AnnotationsProvider"),P3=e=>{let{children:t}=e,[n,r]=(0,O.useState)(null),i=g9(n),{setFocusedInteraction:o,restoreDefaultInteraction:l}=bc();(0,O.useEffect)(()=>{n?o("annotations"):i&&l()},[n,i,l,o]);let a=(0,O.useMemo)(()=>({focusedAnnotationId:n,setFocusedAnnotationId:r}),[n]);return(0,g.jsx)(P2.Provider,{value:a,children:t})},P7=e=>{let{id:t,editorRef:n,isNew:r,toolbarRef:i}=e,{setFocusedAnnotationId:o,focusedAnnotationId:l}=P5(),[a,s]=(0,O.useState)(!1),[u,c]=(0,O.useState)(!1),d=()=>{s(!0),o(t)},p=()=>{s(!1),o(null)};return(0,O.useEffect)(()=>{let e=e=>{var t,r;a&&(e.target instanceof Element&&(null==(t=n.current)?void 0:t.contains(e.target))||e.target instanceof Element&&(null==(r=null==i?void 0:i.current)?void 0:r.contains(e.target))||(s(!1),o(null),c(!1)))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,a,o,i]),gW(()=>{l===t&&o(null)}),(0,O.useEffect)(()=>{null!==l&&l!==t&&s(!1)},[l,t]),(0,O.useEffect)(()=>{var e;r&&(null==(e=n.current)||e.focus())},[r,n]),{isFocused:a,isHovered:u,blurAnnotation:p,focusAnnotation:d,editorHandlers:{onFocus:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:e=>{"Tab"===e.key&&p()}}}},P9=e=>{let{annotationId:t,isEditable:n,isFocused:r,textEditorRef:i={current:null},onDuplicate:o,onDelete:l,onEscPress:a}=e,[s,u]=(0,O.useState)(!1);(0,O.useEffect)(()=>{let e=e=>{var c,d,p,h,g,f,m;if(r&&n){if("Escape"===e.key&&(a(),e.preventDefault(),e.stopPropagation()),"Backspace"===e.key||"Delete"===e.key){if((null==(d=null==(c=i.current)?void 0:c.editor)?void 0:d.isFocused)||(null==(p=document.activeElement)?void 0:p.matches("input")))return;l(t),e.preventDefault(),e.stopPropagation()}o&&((e.metaKey||e.ctrlKey)&&"d"===e.key&&(o(t),e.preventDefault(),e.stopPropagation()),!e.metaKey&&!e.ctrlKey||"c"!==e.key||(null==(g=null==(h=i.current)?void 0:h.editor)?void 0:g.isFocused)||(u(!0),e.preventDefault(),e.stopPropagation()),(e.metaKey||e.ctrlKey)&&"v"===e.key&&s&&!(null==(m=null==(f=i.current)?void 0:f.editor)?void 0:m.isFocused)&&(o(t),u(!1),e.preventDefault(),e.stopPropagation()))}};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t,i,n,r,s,l,o,a]),(0,O.useEffect)(()=>{r&&n||u(!1)},[n,r])},P4=Math.PI/4,P6=e=>"difference-arrow-container-".concat(e),P8=e=>"difference-arrow-label-".concat(e),Le={light:"#1D2129",dark:"#FFFFFF"},Lt={light:Le.dark,dark:Le.light},Ln=e=>(t,n)=>{let r=t(n),i=Le[e.colorScheme];return 1.4>eq.Ay.contrast(r,i)&&(i=Lt[e.colorScheme]),{color:n,stickerColor:i}},Lr={thin:{arrowheadLength:{minValue:6,targetValue:8},strokeWidth:{minValue:1,targetValue:2}},medium:{arrowheadLength:{minValue:12,targetValue:16},strokeWidth:{minValue:2,targetValue:4}},thick:{arrowheadLength:{minValue:24,targetValue:32},strokeWidth:{minValue:4,targetValue:8}}},Li=(e,t)=>Math.min(t.targetValue,t.minValue*e),Lo=e=>{let{startX:t,startY:n,endX:r,endY:i,attributes:o}=e,l=mr("chartWidth"),a=(0,h.DP)(),s=bK(),u=(0,O.useCallback)(()=>{var e;let t=null!=(e=o.color)?e:a.values.textPrimary;return Ln(a)(s,t)},[o.color,s,a]);return(0,O.useMemo)(()=>{let e=Math.max(1,(l-400)/400+1),a=Li(e,Lr[o.thickness].strokeWidth),s=()=>"\n M ".concat(t," ").concat(n,"\n L ").concat(r," ").concat(i,"\n "),c=e=>{if("line-arrow"!==("start"===e?o.startArrowheadStyle:o.endArrowheadStyle))return"";let l=p("start"===e?t:r,"start"===e?n:i,"start"===e?Math.atan2(n-i,t-r):Math.atan2(i-n,r-t));switch(e){case"start":return"\n M ".concat(t," ").concat(n,"\n L ").concat(l.x1," ").concat(l.y1,"\n M ").concat(t," ").concat(n,"\n L ").concat(l.x2," ").concat(l.y2,"\n ");case"end":return"\n M ".concat(r," ").concat(i,"\n L ").concat(l.x1," ").concat(l.y1,"\n M ").concat(r," ").concat(i,"\n L ").concat(l.x2," ").concat(l.y2,"\n ")}},d=()=>{let l=Li(e,Lr[o.thickness].arrowheadLength);return Math.min(l,Math.hypot(r-t,i-n)/(64/l))},p=(e,t,n)=>{let r=d();return{x1:e-r*Math.cos(n-P4),y1:t-r*Math.sin(n-P4),x2:e-r*Math.cos(n+P4),y2:t-r*Math.sin(n+P4)}};return{arrowThickness:a,getArrowSettings:u,getArrowPath:()=>"\n ".concat(s(),"\n ").concat("line-arrow"===o.startArrowheadStyle?c("start"):"","\n ").concat("line-arrow"===o.endArrowheadStyle?c("end"):"","\n "),getLinePath:s,getArrowheadPath:c,getDashedStroke:()=>{let e="none"!==o.startArrowheadStyle;switch(o.lineStyle){case"solid":return{};case"dashed":return{strokeDasharray:"".concat(1.5*a," ").concat(3*a),strokeDashoffset:e?1.5*a:0}}},getArrowFilterArea:()=>{let e=d()*Math.sin(P4)+a/2+2+1.15;return{filterUnits:"userSpaceOnUse",x:Math.min(t,r)-e,y:Math.min(n,i)-e,width:Math.abs(r-t)+2*e,height:Math.abs(i-n)+2*e}}}},[l,o.thickness,o.startArrowheadStyle,o.endArrowheadStyle,o.lineStyle,u,t,n,r,i])},Ll=(0,O.memo)(e=>{let t=(0,O.useId)(),n=Lo(e),{arrowPath:r,linePath:i,startArrowheadPath:o,endArrowheadPath:l,arrowSettings:a,arrowThickness:s,dashedStroke:u,filterProps:c}=(0,O.useMemo)(()=>({arrowThickness:n.arrowThickness,arrowSettings:n.getArrowSettings(),arrowPath:n.getArrowPath(),linePath:n.getLinePath(),startArrowheadPath:n.getArrowheadPath("start"),endArrowheadPath:n.getArrowheadPath("end"),dashedStroke:n.getDashedStroke(),filterProps:n.getArrowFilterArea()}),[n]);return(0,g.jsxs)("g",{children:[(0,g.jsx)("defs",{children:(0,g.jsx)("filter",Object.assign({id:t},c,{children:(0,g.jsx)("feDropShadow",{dx:0,dy:1.15,stdDeviation:1.15,floodColor:"#000",floodOpacity:.16})}))}),(0,g.jsxs)("g",{filter:e.attributes.stickerStyle?"url(#".concat(t,")"):"",children:[e.attributes.stickerStyle&&(0,g.jsx)("path",{d:r,stroke:a.stickerColor,strokeWidth:s+4,strokeLinecap:"round",fill:"none"}),(0,g.jsx)("path",Object.assign({d:i,stroke:a.color,strokeWidth:s,strokeLinecap:"round"},u,{fill:"none"})),(0,g.jsx)("path",{d:o,stroke:a.color,strokeWidth:s,strokeLinecap:"round",fill:"none"}),(0,g.jsx)("path",{d:l,stroke:a.color,strokeWidth:s,strokeLinecap:"round",fill:"none"})]})]})});Ll.displayName="Arrow";let La=h.I4.svg(oY()),Ls=h.I4.g(oG()),Lu=e=>{let{annotationId:t,onDelete:n}=e;return(0,g.jsx)(ja,{label:"Delete",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{variant:"subtle",onClick:()=>n(t),iconBefore:(0,g.jsx)(bw,{})})})},Lc=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i,seriesColorOptions:o}=e,l=ma();return(0,g.jsx)(jq,{onChange:e=>{i(n,"color",e)},value:null!=(t=r.color)?t:l.values.textPrimary,seriesColorOptions:o})},Ld=h.I4.div(oW()),Lp=h.I4.div(oU()),Lh=[{value:"line-arrow",label:"Line arrow"},{value:"none",label:"None"}],Lg=Lh.find(e=>"line-arrow"===e.value),Lf=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i,point:o}=e,l=null!=(t=Lh.find(e=>e.value===r["".concat(o,"ArrowheadStyle")]))?t:Lg;return(0,g.jsx)(wu,{variant:"subtle",options:Lh,value:l,onChange:e=>{i(n,"".concat(o,"ArrowheadStyle"),e.value)},shouldFitContent:!0,renderValue:()=>{switch(o){case"start":return(0,g.jsx)(Ld,{children:(0,g.jsx)(bE,{})});case"end":return(0,g.jsx)(Ld,{children:(0,g.jsx)(bH,{})})}},renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,g.jsx)(AW,Object.assign({},n,{iconAfter:"line-arrow"===t.value?(0,g.jsx)(bH,{}):"—",children:t.label}))},tooltip:{label:"start"===o?"Start point":"End point",hasInvertedTheme:!1}})},Lm=[{value:"thin",label:"Thin"},{value:"medium",label:"Medium"},{value:"thick",label:"Thick"}],Ly=Lm.find(e=>"medium"===e.value),Lx=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i}=e,o=null!=(t=Lm.find(e=>e.value===r.thickness))?t:Ly;return(0,g.jsx)(wu,{variant:"subtle",options:Lm,value:o,onChange:e=>{i(n,"thickness",e.value)},shouldFitContent:!0,renderValue:()=>(0,g.jsx)(Ld,{children:(0,g.jsx)(bX,{})}),tooltip:{label:"Thickness",hasInvertedTheme:!1}})},Lb=h.I4.div(oN(),hY,sV.lg,sF.sm,hK(.5),uA("textPrimary"),uA("overlayBackground"),sB(uA("overlayBorderGradient"),1,"lg")),LC=[{value:"solid",label:"Solid"},{value:"dashed",label:"Dotted"}],Lv=LC.find(e=>"solid"===e.value),Lj=e=>{var t;let{annotationId:n,attributes:r,onAttributeUpdate:i}=e,o=null!=(t=LC.find(e=>e.value===r.lineStyle))?t:Lv;return(0,g.jsx)(wu,{variant:"subtle",options:LC,value:o,onChange:e=>{i(n,"lineStyle",e.value)},shouldFitContent:!0,renderValue:e=>(0,g.jsx)(Ld,{children:"solid"===e.value?(0,g.jsx)(LA,{}):(0,g.jsx)(Lw,{})}),renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,g.jsx)(AW,Object.assign({},n,{iconAfter:"solid"===t.value?(0,g.jsx)(LA,{}):(0,g.jsx)(Lw,{}),children:t.label}))},tooltip:{label:"Line style",hasInvertedTheme:!1}})},LA=()=>(0,g.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),Lw=()=>(0,g.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{d:"M13.5 2.5L2.5 13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:"3 4"})}),Lk=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r}=e;return(0,g.jsx)(ja,{label:"Sticker effect",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{onClick:()=>{r(t,"stickerStyle",!n.stickerStyle)},variant:"subtle",children:(0,g.jsx)(LS,{isActive:n.stickerStyle})})})},LS=e=>{let{isActive:t}=e,n=(0,O.useId)(),r="M6.50002 3.16666C6.22388 3.16666 6.00002 2.9428 6.00002 2.66666C6.00002 2.39051 6.22388 2.16666 6.50002 2.16666H13.8334C14.1095 2.16666 14.3334 2.39051 14.3334 2.66666V9.99999C14.3334 10.2761 14.1095 10.5 13.8334 10.5C13.5572 10.5 13.3334 10.2761 13.3334 9.99999V3.87376L3.52024 13.6869C3.32498 13.8821 3.0084 13.8821 2.81313 13.6869C2.61787 13.4916 2.61787 13.175 2.81313 12.9798L12.6262 3.16666H6.50002Z";return(0,g.jsx)(Lp,{children:(0,g.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,g.jsx)("defs",{children:(0,g.jsx)("filter",{id:n,x:"-50%",y:"-50%",width:"200%",height:"200%",children:(0,g.jsx)("feDropShadow",{dx:"0",dy:"0",stdDeviation:"0.5",floodColor:"#000",floodOpacity:"0.5"})})}),(0,g.jsxs)("g",{filter:t?"url(#".concat(n,")"):"",children:[t&&(0,g.jsx)("path",{d:r,fill:"#fff",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:r,fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5"})]})]})})},LP=O.forwardRef(function(e,t){let{isVisible:n,floatingStyles:r,annotationId:i,attributes:o,seriesColorOptions:l,onAttributeUpdate:a,onDelete:s}=e,u=ba();if(!n)return null;let c={annotationId:i,attributes:o,onAttributeUpdate:a};return(0,g.jsx)(md,{container:null==u?void 0:u.container,zIndex:sJ.toolbar,children:(0,g.jsxs)(Lb,{ref:t,role:"toolbar","aria-label":"Free-form arrow toolbar",style:r,children:[(0,g.jsx)(Lc,Object.assign({},c,{seriesColorOptions:l})),(0,g.jsx)(Lx,Object.assign({},c)),(0,g.jsx)(Lf,Object.assign({point:"start"},c)),(0,g.jsx)(Lj,Object.assign({},c)),(0,g.jsx)(Lf,Object.assign({point:"end"},c)),(0,g.jsx)(Lk,Object.assign({},c)),(0,g.jsx)(Lu,{onDelete:s,annotationId:i})]})})}),LL=e=>{let{annotationId:t,startX:n,startY:r,endX:i,endY:o,onUpdate:l,isEditorFocused:a,isEditorHovered:s,zoom:u=1}=e,c=(0,O.useRef)(n),d=(0,O.useRef)(r),p=(0,O.useRef)(i),h=(0,O.useRef)(o),[f,m]=(0,O.useState)(!1),y=gN({preventDefault:!1,dragThreshold:0,onDragStart:()=>{c.current=n,d.current=r,m(!0)},onDrag:e=>{l(t,c.current+e.deltaX/u,d.current+e.deltaY/u,i,o),document.body.style.cursor="grabbing"},onDragEnd:()=>{m(!1),document.body.style.cursor="grab"}}),x=gN({preventDefault:!1,dragThreshold:0,onDragStart:()=>{p.current=i,h.current=o,m(!0)},onDrag:e=>{l(t,n,r,p.current+e.deltaX/u,h.current+e.deltaY/u),document.body.style.cursor="grabbing"},onDragEnd:()=>{m(!1),document.body.style.cursor="grab"}});gW(()=>{y.cleanup(),x.cleanup()});let b=ma();return(0,g.jsxs)("g",{cursor:f?"grabbing":"grab",opacity:a?1:.75*!!s,children:[(0,g.jsx)("circle",Object.assign({cx:n,cy:r,r:5,fill:b.values.annotationFrameBorderColor},y.dragProps)),(0,g.jsx)("circle",Object.assign({cx:i,cy:o,r:5,fill:b.values.annotationFrameBorderColor},x.dragProps))]})},LM=e=>{let{annotationId:t,attributes:n,startX:r,startY:i,endX:o,endY:l,onMove:a,isEditorFocused:s,isEditorHovered:u,zoom:c=1}=e,d=ma(),p=Lo({startX:r,startY:i,endX:o,endY:l,attributes:n}),h=(0,O.useRef)(r),f=(0,O.useRef)(i),m=(0,O.useRef)(o),y=(0,O.useRef)(l),{dragProps:x,cleanup:b}=gN({preventDefault:!1,dragThreshold:0,onDragStart:()=>{h.current=r,f.current=i,m.current=o,y.current=l},onDrag:e=>{a(t,h.current+e.deltaX/c,f.current+e.deltaY/c,m.current+e.deltaX/c,y.current+e.deltaY/c)}});gW(b);let C=p.getLinePath();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("path",Object.assign({cursor:"move",d:C,stroke:"none",strokeWidth:15,strokeLinecap:"round"},x)),(u||s)&&(0,g.jsx)("path",{pointerEvents:"none",d:C,stroke:d.values.annotationFrameBorderColor,strokeWidth:1,strokeOpacity:s?1:.75})]})},LO=e=>{let{isVisible:t,offset:n=0}=e,{refs:{setReference:r,setFloating:i},floatingStyles:o}=(0,eM.we)({open:t,placement:"top",middleware:[(0,eM.cY)(n)],whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=mr("chartWidth"),t=mr("chartHeight"),n=x$("plotOffsetX"),r=x$("plotOffsetY"),i=x$("plotHeight");return{top:-r-40,right:-(e-x$("plotWidth")-n)-10,bottom:-(t-i-r)-10,left:-n-10}},LI=(e,t,n)=>({startX:hZ(n.config.start.x*e),startY:hZ(n.config.start.y*t),endX:hZ(n.config.end.x*e),endY:hZ(n.config.end.y*t)}),LE=e=>{var{annotation:t,onPointsUpdate:n,onAttributeUpdate:r,onDuplicate:i,onDelete:o,isEditable:l,zIndex:a,isNew:s}=e,u=s$(e,["annotation","onPointsUpdate","onAttributeUpdate","onDuplicate","onDelete","isEditable","zIndex","isNew"]);let c=(0,O.useRef)(null),d=(0,O.useRef)(null),{coords:p,handleUpdate:h}=(e=>{let{annotation:t,onPointsUpdate:n}=e,r=x$("plotHeight"),i=x$("plotWidth"),[o,l]=(0,O.useState)(LI(i,r,t));(0,O.useEffect)(()=>{l(LI(i,r,t))},[r,i]);let a=LD();return{coords:o,handleUpdate:(e,t,o,s,u)=>{let c=Math.max(a.left,Math.min(t,i-a.right)),d=Math.max(a.top,Math.min(o,r-a.bottom)),p=Math.max(a.left,Math.min(s,i-a.right)),h=Math.max(a.top,Math.min(u,r-a.bottom));n(e,c/i,d/r,p/i,u/r),l({startX:c,startY:d,endX:p,endY:h})}}})({annotation:t,onPointsUpdate:n}),{isFocused:f,isHovered:m,blurAnnotation:y,editorHandlers:x}=P7({id:t.id,editorRef:d,toolbarRef:c,isNew:s});return P9({annotationId:t.id,isEditable:l,isFocused:f,onDelete:o,onDuplicate:i,onEscPress(){var e;null==(e=d.current)||e.blur(),y()}}),(0,g.jsxs)(La,{style:{zIndex:a},children:[(0,g.jsx)(Ll,Object.assign({},p,{attributes:t.config.attributes})),(0,g.jsx)(LT,Object.assign({ref:d,toolbarRef:c,annotationId:t.id,attributes:t.config.attributes,onAttributeUpdate:r,onDelete:o,onPointsUpdate:h,isFocused:f,isHovered:m,isEditable:l},p,u,x))]})},LH=e=>{if(!e)return{x:0,y:0};switch(e.type){case"bar":return e.flipAxes?{x:e.x1,y:(e.y0+e.y1)/2}:{x:(e.x0+e.x1)/2,y:e.y0};case"line":return{x:e.xPosition,y:e.yPosition}}},LV=(e,t)=>{switch(e){case"small":return{arrowStartGap:6,arrowEndGap:6,offsetFromHighestDataPoint:15,arrowheadSize:5,curveRadius:15,strokeWidth:2,labelLineHeight:12*t,labelPadding:3,labelStrokeWidth:1,toolbarOffset:hN(2)};case"medium":return{arrowStartGap:9,arrowEndGap:9,offsetFromHighestDataPoint:18.75,arrowheadSize:7.5,curveRadius:18.75,strokeWidth:3,labelLineHeight:16*t,labelPadding:4,labelStrokeWidth:1.5,toolbarOffset:hN(2.5)};case"large":return{arrowStartGap:12,arrowEndGap:12,offsetFromHighestDataPoint:26.25,arrowheadSize:12.5,curveRadius:22.5,strokeWidth:5,labelLineHeight:20*t,labelPadding:5,labelStrokeWidth:2,toolbarOffset:hN(3)}}},LF=h.I4.path(oK()),LB=h.I4.path(oZ()),Lz=e=>{let{differenceArrow:t,attributes:n,plotEffect:r}=e,i=(0,O.useId)(),o=mr("textScale");if(!t)return null;let{linePath:l,arrowheadPath:a,arrowColor:s}=t,{strokeWidth:u}=LV(n.size,o),c={stroke:s,strokeWidth:u,strokeLinecap:"round"};return(0,g.jsxs)(g.Fragment,{children:["neon"===r&&(0,g.jsx)(S1,{shapeId:i,blur:3}),(0,g.jsxs)("g",{children:[(0,g.jsx)(LF,Object.assign({id:i,d:l},c)),(0,g.jsx)(LB,Object.assign({d:a},c))]})]})},LR=(0,O.createContext)(null),LY=uE(LR,"DifferenceArrowProvider"),LG=e=>{let{children:t}=e,[n,r]=(0,O.useState)(!1),i=(0,O.useMemo)(()=>({isDragging:n,setIsDragging:r}),[n]);return(0,g.jsx)(LR.Provider,{value:i,children:t})},LW=e=>{let{arrowEnd:t,x:n,y:r,findNearestDataPoint:i,zoom:o,onFindNearestDataPoint:l}=e,a=(0,O.useRef)(n),s=(0,O.useRef)(r),{setIsDragging:u}=LY(),c=gN({preventDefault:!1,dragThreshold:0,onDragStart:()=>{a.current=n,s.current=r,u(!0)},onDrag:e=>{let n=i({from:t,x:a.current+e.deltaX/o,y:s.current+e.deltaY/o});n&&l(n),document.body.style.cursor="grabbing"},onDragEnd:()=>{u(!1),document.body.style.cursor="grab"}});return gW(()=>{c.cleanup()}),c},LU=e=>{let{annotationId:t,differenceArrow:{startControlPointPosition:n,endControlPointPosition:r,findNearestDataPoint:i,startDataPointId:o,endDataPointId:l},onUpdate:a,isEditorFocused:s,isEditorHovered:u,zoom:c=1}=e,{x:d,y:p}=n,{x:h,y:f}=r,m=LW({arrowEnd:"start",x:d,y:p,zoom:c,findNearestDataPoint:i,onFindNearestDataPoint(e){a(t,e.id,l)}}),y=LW({arrowEnd:"end",x:h,y:f,zoom:c,findNearestDataPoint:i,onFindNearestDataPoint(e){a(t,o,e.id)}}),{isDragging:x}=LY(),b=ma();return(0,g.jsxs)("g",{cursor:x?"grabbing":"grab",opacity:s?1:.75*!!u,children:[(0,g.jsx)("circle",Object.assign({cx:d,cy:p,r:5,fill:b.values.annotationFrameBorderColor},m.dragProps)),(0,g.jsx)("circle",Object.assign({cx:h,cy:f,r:5,fill:b.values.annotationFrameBorderColor},y.dragProps))]})},LN=h.I4.g(oX()),LK=e=>{let{annotationId:t,value:n,onAttributeUpdate:r,seriesColorOptions:i}=e;return(0,g.jsx)(jq,{onChange:e=>{r(t,"color",e)},value:n,seriesColorOptions:i,tooltip:"Color"})},LZ=h.I4.div(o_()),LX=ct.options.map(e=>({value:e,label:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))})),L_=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r}=e,i=LX.find(e=>e.value===n.size);return(0,g.jsx)(wu,{variant:"subtle",options:LX,value:i,onChange:e=>{r(t,"size",e.value)},shouldFitContent:!0,renderValue:()=>(0,g.jsx)(LZ,{children:(0,g.jsx)(bX,{})}),tooltip:{label:"Size",hasInvertedTheme:!1}})},LQ=h.I4.div(oQ(),hY,sV.lg,sF.sm,hK(.5),uA("textPrimary"),uA("overlayBackground"),sB(uA("overlayBorderGradient"),1,"lg")),LJ={"absolute-difference":"Difference","relative-difference":"Percentage change",proportion:"Proportion"},Lq=e=>{let{annotationId:t,attributes:n,onAttributeUpdate:r,differenceArrow:i}=e,o=ce.options.map(e=>({value:e,label:LJ[e]})),l=o.find(e=>e.value===n.type);return(0,g.jsx)(wu,{variant:"subtle",options:o,value:l,onChange:e=>{r(t,"type",e.value)},shouldFitContent:!0,renderItem:e=>{let{option:t,menuItemProps:n}=e;return(0,g.jsx)(AW,Object.assign({},n,{children:L$(t.value,i)}))}})},L$=(e,t)=>{let{absoluteDifference:n,percentageChange:r,proportion:i,trend:o}=t;switch(e){case"absolute-difference":{let e="Difference";return o>0&&(e="Increase"),o<0&&(e="Decrease"),"".concat(e," (").concat(n,")")}case"relative-difference":{let e="Percentage change";return o>0&&(e="Percent increase"),o<0&&(e="Percent decrease"),"".concat(e," (").concat(r,")")}case"proportion":return"Proportion (".concat(i,")")}},L1=e=>{let{annotationId:t,differenceArrow:n,onConnect:r}=e;return(0,g.jsx)(ja,{label:"Flip arrow",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{onClick:()=>{r(t,n.endDataPointId,n.startDataPointId)},variant:"subtle",iconBefore:(0,g.jsx)(bV,{})})})},L0=O.forwardRef(function(e,t){let{isVisible:n,floatingStyles:r,annotationId:i,attributes:o,onAttributeUpdate:l,onConnect:a,onDelete:s,differenceArrow:u,seriesColorOptions:c}=e,d=ba();if(!n)return null;let p={annotationId:i,attributes:o,onAttributeUpdate:l,onConnect:a,differenceArrow:u};return(0,g.jsx)(md,{container:null==d?void 0:d.container,zIndex:sJ.toolbar,children:(0,g.jsxs)(LQ,{ref:t,role:"toolbar","aria-label":"Difference arrow toolbar",style:r,children:[(0,g.jsx)(Lq,Object.assign({},p)),(0,g.jsx)(LK,Object.assign({},p,{seriesColorOptions:c,value:u.arrowColor})),(0,g.jsx)(L_,Object.assign({},p)),(0,g.jsx)(L1,Object.assign({},p)),(0,g.jsx)(Lu,{onDelete:s,annotationId:i})]})})}),L2=e=>{let{differenceArrow:t,isEditorFocused:n,isEditorHovered:r}=e,i=ma(),o=mr("textScale");return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("path",{d:t.linePath,fill:"none",stroke:"none",strokeWidth:15*o,strokeLinecap:"round",pointerEvents:"visibleStroke"}),(r||n)&&(0,g.jsx)("path",{pointerEvents:"none",d:t.linePath,fill:"none",stroke:i.values.annotationFrameBorderColor,strokeWidth:1,strokeOpacity:n?1:.75})]})},L5=O.forwardRef(function(e,t){var{annotationId:n,isFocused:r,isHovered:i,isInteractive:o=!1,isEditable:l=!1,zoom:a,differenceArrow:s,onConnect:u,onDelete:c,attributes:d,onAttributeUpdate:p,seriesColorOptions:h,toolbarRef:f}=e,m=s$(e,["annotationId","isFocused","isHovered","isInteractive","isEditable","zoom","differenceArrow","onConnect","onDelete","attributes","onAttributeUpdate","seriesColorOptions","toolbarRef"]);let y=mr("textScale"),{toolbarOffset:x}=LV(d.size,y),{setEditorContainer:b,setToolbarContainer:C,floatingStyles:v}=LO({isVisible:r,offset:x}),j=g3([t,b]),A=g3([f,C]);return o&&l&&s?(0,g.jsxs)(LN,Object.assign({ref:j,tabIndex:0,"aria-label":"Difference arrow editor"},m,{children:[(0,g.jsx)(L2,{differenceArrow:s,isEditorFocused:r,isEditorHovered:i}),(0,g.jsx)(LU,{annotationId:n,differenceArrow:s,onUpdate:u,isEditorFocused:r,isEditorHovered:i,zoom:a}),(0,g.jsx)(L0,{ref:A,isVisible:r,floatingStyles:v,annotationId:n,attributes:d,onAttributeUpdate:p,onConnect:u,onDelete:c,differenceArrow:s,seriesColorOptions:h})]})):null}),L3=h.I4.svg(oJ()),L7=h.I4.g(oq()),L9=h.I4.rect(o$(),uA("grey100")),L4=h.I4.text(o1(),e=>{let{$size:t}=e;switch(t){case"small":return sv;case"medium":return sj;case"large":return sA}}),L6=()=>{let e=yV();return(0,O.useCallback)(t=>{let{attributes:n,labelPosition:r,labelColor:i,percentageChange:o,absoluteDifference:l,proportion:a}=t,s=(0,g.jsx)(L4,Object.assign({},r,{$size:n.size,fill:i,textAnchor:"middle",dominantBaseline:"central",children:L8({attributes:n,absoluteDifference:l,percentageChange:o,proportion:a})}));return{measuredLabel:e(s),label:s}},[e])},L8=e=>{let{attributes:t,absoluteDifference:n,percentageChange:r,proportion:i}=e;switch(t.type){case"absolute-difference":return n;case"relative-difference":return r;case"proportion":return i}},Me=e=>{let{differenceArrow:t,attributes:n,focusAnnotation:r,crossPosition:i,setCrossPosition:o,isEditable:l,flipAxes:a}=e,s=mr("textScale"),u=L6(),{measuredLabel:c,label:d}=(0,O.useMemo)(()=>t?u(Object.assign({attributes:n},t)):{measuredLabel:{width:0},label:null},[n,t,u]),p=(0,O.useRef)(i),{dragProps:h,cleanup:f}=gN({blockPagePointerEvents:!0,dragThreshold:0,onDragStart:()=>{p.current=i},onDrag:e=>{let{deltaX:n,deltaY:r}=e;t&&(document.body.style.setProperty("cursor",null),o((0,k.A)(p.current+(a?r:n)/(null==t?void 0:t.crossSize),0,1)))},onDragEnd(){r()}});gW(f);let{isInHighlightMode:m}=bc();if(!t||!d)return null;let{labelLineHeight:y,labelPadding:x,labelStrokeWidth:b}=LV(n.size,s);return(0,g.jsxs)(L7,Object.assign({},l?h:{},{style:{cursor:l?"grab":"default",pointerEvents:m?"none":"auto"},children:[(0,g.jsx)(L9,{x:t.labelPosition.x-c.width/2-x,y:t.labelPosition.y-y/2-x,width:c.width+2*x,height:y+2*x,rx:4,stroke:t.arrowColor,strokeWidth:b}),d]}))},Mt=e=>{let{annotation:t,getConnectedDataPointIds:n}=e,{start:r,end:i}=n(t),{isDragging:o}=LY(),l=CN().filter(e=>e.id!==r&&e.id!==i),a=ma();return r&&i&&o?(0,g.jsx)(g.Fragment,{children:l.map(e=>{let t=LH(e);return(0,g.jsx)("circle",{cx:t.x,cy:t.y,r:5,fill:"none",stroke:a.values.textPrimary,strokeOpacity:.5,strokeWidth:1},e.id)})}):null},Mn=e=>{let{intl:t,attributes:n,flipAxes:r,textScale:i,startDataPoint:o,endDataPoint:l,labelCrossPosition:a}=e,s=LV(n.size,i),u=LH(o),c=LH(l),d=Ml(r,u,c),p=Mr(r,u,c,s);return{labelPosition:Mi(r,u,c,p,d,a),percentageChange:fN({intl:t,differenceLabelType:"relative-difference",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),absoluteDifference:fN({intl:t,differenceLabelType:"absolute-difference",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),proportion:fN({intl:t,differenceLabelType:"proportion",startValue:null==o?void 0:o.yValue,endValue:null==l?void 0:l.yValue}),trend:Mo(o,l),crossSize:d}},Mr=(e,t,n,r)=>{let i=r.offsetFromHighestDataPoint+r.arrowheadSize+r.arrowEndGap;return e?Math.max(t.x,n.x)+i:Math.min(t.y,n.y)-i},Mi=function(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.5;return e?{x:r,y:Math.min(t.y,n.y)+o*i}:{x:Math.min(t.x,n.x)+o*i,y:r}},Mo=(e,t)=>{if(!e||!t||null===e.yValue||null===t.yValue)return 0;let n=fr(e.yValue),r=fr(t.yValue);return r>n?1:re?Math.abs(t.y-n.y):Math.abs(t.x-n.x),Ma=()=>{let e=CN();return(0,O.useCallback)((t,n)=>{let{start:r,end:i}=n(t);return{startDataPoint:e.find(e=>e.id===r),endDataPoint:e.find(e=>e.id===i),startDataPointId:r,endDataPointId:i}},[e])},Ms=e=>{let{annotation:t,getConnectedDataPointIds:n}=e,{startDataPoint:r,endDataPoint:i,startDataPointId:o,endDataPointId:l}=Ma()(t,n);return r&&i?(0,g.jsx)(Mu,Object.assign({},e,{startDataPoint:r,endDataPoint:i,startDataPointId:o,endDataPointId:l})):null},Mu=e=>{var t,{startDataPoint:n,endDataPoint:r,startDataPointId:i,endDataPointId:o,annotation:l,getConnectedDataPointIds:a,onAttributeUpdate:s,onDelete:u,zIndex:c,isNew:d,isEditable:p,plotEffect:h}=e,f=s$(e,["startDataPoint","endDataPoint","startDataPointId","endDataPointId","annotation","getConnectedDataPointIds","onAttributeUpdate","onDelete","zIndex","isNew","isEditable","plotEffect"]);let m=mr("overPlotPortalId"),y=gU(s,200),[x,b]=(0,O.useState)(null!=(t=l.config.attributes.labelCrossPosition)?t:.5),C=(0,O.useRef)(null),v=(0,O.useRef)(null),j=l.config.attributes,A=(e=>{var t;let{annotation:n,attributes:r,startDataPoint:i,endDataPoint:o,startDataPointId:l,endDataPointId:a,labelCrossPosition:s}=e,u=(0,Y.A)(),c=ma(),d=mr("textScale"),p=CN(),h=bK(),g=null!=(t=null==i?void 0:i.flipAxes)&&t,f=(0,O.useMemo)(()=>(e=>{var t;let{resolveCssColor:n,theme:r,startDataPoint:i,endDataPoint:o,annotation:l}=e;if(!i||!o)return{defaultArrowColor:r.values.defaultArrowAnnotationColor,arrowColor:r.values.defaultArrowAnnotationColor,labelColor:r.values.textPrimary};let a=i.vizColor===o.vizColor?i.vizColor:r.values.defaultArrowAnnotationColor,s=Ln(r),u=l.config.attributes.color;return u?{defaultArrowColor:a,arrowColor:null!=(t=s(n,u).color)?t:"",labelColor:r.values.textPrimary}:{defaultArrowColor:a,arrowColor:a,labelColor:r.values.textPrimary}})({resolveCssColor:h,theme:c,startDataPoint:i,endDataPoint:o,annotation:n}),[n,o,h,i,c]);return(0,O.useMemo)(()=>{let e=LV(r.size,d),t=LH(i),n=LH(o),c=Mr(g,t,n,e),h=(g?(e,t,n,r)=>{let{arrowStartGap:i,arrowEndGap:o,curveRadius:l}=r,a=e.x+i,s=e.y,u=e.y,c=t.y,d=t.x+o,p=t.y,h=t.y>e.y?1:-1;return"\n M ".concat(a," ").concat(s,"\n L ").concat(n-l," ").concat(u,"\n Q ").concat(n," ").concat(u," ").concat(n," ").concat(u+h*l,"\n L ").concat(n," ").concat(c-h*l,"\n Q ").concat(n," ").concat(c," ").concat(n-l," ").concat(c,"\n L ").concat(d," ").concat(p,"\n ")}:(e,t,n,r)=>{let{arrowStartGap:i,arrowEndGap:o,curveRadius:l}=r,a=e.x,s=e.y-i,u=e.x,c=t.x,d=t.x,p=t.y-o,h=t.x>e.x?1:-1;return"\n M ".concat(a," ").concat(s,"\n L ").concat(u," ").concat(n+l,"\n Q ").concat(u," ").concat(n," ").concat(u+h*l," ").concat(n,"\n L ").concat(c-h*l," ").concat(n,"\n Q ").concat(c," ").concat(n," ").concat(c," ").concat(n+l,"\n L ").concat(d," ").concat(p,"\n ")})(t,n,c,e),m=((e,t,n)=>{let{arrowEndGap:r,arrowheadSize:i}=n;return e?"\n M ".concat(t.x+r+i," ").concat(t.y-i,"\n L ").concat(t.x+r," ").concat(t.y,"\n L ").concat(t.x+r+i," ").concat(t.y+i,"\n "):"\n M ".concat(t.x-i," ").concat(t.y-r-i,"\n L ").concat(t.x," ").concat(t.y-r,"\n L ").concat(t.x+i," ").concat(t.y-r-i,"\n ")})(g,n,e),{labelPosition:y,percentageChange:x,absoluteDifference:b,proportion:C,trend:v,crossSize:j}=Mn({intl:u,attributes:r,flipAxes:g,textScale:d,startDataPoint:i,endDataPoint:o,labelCrossPosition:s}),A=e=>{let{from:t,x:n,y:r}=e;return p.filter(e=>(e.id!==l||"start"===t)&&(e.id!==a||"end"===t)).reduce((e,t)=>{let i=Math.sqrt(Math.pow(t.xPosition-n,2)+Math.pow(t.yPosition-r,2));return i{b(e),y(l.id,"labelCrossPosition",e)},isEditable:p,flipAxes:n.flipAxes})})}),(0,g.jsx)(Mt,{annotation:l,getConnectedDataPointIds:a})]})},Mc=(e,t)=>Md(e.groupValues)!==Md(t.groupValues),Md=e=>e.map(yg).join("#separator#"),Mp=e=>{let{deltaX:t,deltaY:n,startX:r,startY:i,startWidth:o,startHeight:l,chartWidth:a,chartHeight:s,anchor:u}=e,c=r,d=i,p=o,h=l;if(u.includes("right")&&(p+=t),u.includes("bottom")&&(h+=n),u.includes("left")){let e=o-20;c+=(0,k.A)(t,-r,e),p-=(0,k.A)(t,-r,e)}if(u.includes("top")){let e=l-20;h-=(0,k.A)(n,-i,e),d+=(0,k.A)(n,-i,e)}let g=Math.max(0,c),f=Math.max(0,d);return{x:g/a,y:f/s,width:(0,k.A)(p,20,a-g)/a,height:(0,k.A)(h,20,s-f)/s}},Mh=h.I4.div(o0()),Mg=h.I4.div(o2(),10,10,uA("annotationFrameBorderColor"),5),Mf=(0,h.I4)(Mg)(o5()),Mm=(0,h.I4)(Mg)(o3()),My=(0,h.I4)(Mg)(o7()),Mx=(0,h.I4)(Mg)(o9()),Mb=(0,O.forwardRef)((e,t)=>{let{isHovered:n,isFocused:r,isInteracting:i,annotation:o,onAttributesUpdate:l,setInteractingState:a,focusAnnotation:s}=e,u=mr("chartWidth"),c=mr("chartHeight"),d=o.config.x*u,p=o.config.y*c,h=o.config.width*u,f=o.config.height*c,m=u-h,y=c-f,x=(0,O.useRef)(d),b=(0,O.useRef)(p),C=(0,O.useRef)(h),v=(0,O.useRef)(f),j=(0,O.useRef)(""),A=()=>{x.current=d,b.current=p,C.current=h,v.current=f,s(),a({config:o.config,isInteracting:!0})},w=e=>{l(o.id,e),setTimeout(()=>{a(e=>Object.assign(Object.assign({},e),{isInteracting:!1}))},0)},S=gN({dragThreshold:0,onDragStart:A,onDrag(e){let{deltaX:t,deltaY:n}=e,r=(0,k.A)(x.current+t,0,m),i=(0,k.A)(b.current+n,0,y);a(e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{x:r/u,y:i/c})}))},onDragEnd(e){let{deltaX:t,deltaY:n}=e;w({x:(0,k.A)(x.current+t,0,m)/u,y:(0,k.A)(b.current+n,0,y)/c})}}),P=gN({dragThreshold:0,onPointerDown(e){j.current=e.currentTarget.getAttribute("data-anchor")||""},onDragStart:A,onDrag(e){let{deltaX:t,deltaY:n}=e;a(e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),Mp({deltaX:t,deltaY:n,startX:x.current,startY:b.current,startWidth:C.current,startHeight:v.current,chartWidth:u,chartHeight:c,anchor:j.current}))}))},onDragEnd(e){let{deltaX:t,deltaY:n}=e;w(Mp({deltaX:t,deltaY:n,startX:x.current,startY:b.current,startWidth:C.current,startHeight:v.current,chartWidth:u,chartHeight:c,anchor:j.current}))}});return gW(()=>{S.cleanup(),P.cleanup()}),(0,g.jsxs)(Mh,Object.assign({ref:t,style:{opacity:r||i?1:.75*!!n,cursor:"move"}},S.dragProps,{children:[(0,g.jsx)(Mf,Object.assign({"data-anchor":"top-left"},P.dragProps)),(0,g.jsx)(Mm,Object.assign({"data-anchor":"top-right"},P.dragProps)),(0,g.jsx)(My,Object.assign({"data-anchor":"bottom-left"},P.dragProps)),(0,g.jsx)(Mx,Object.assign({"data-anchor":"bottom-right"},P.dragProps))]}))});Mb.displayName="ShapeAnnotationControls";let MC=h.I4.div(o4()),Mv=h.I4.svg(o6()),Mj=e=>{let{seriesColorOptions:t,annotation:n,onAttributesUpdate:r}=e;return(0,g.jsx)(jq,{tooltip:"Color",value:n.config.fillColor,onChange:e=>{r(n.id,{fillColor:e})},seriesColorOptions:t,showOpacitySlider:!0,opacityValue:n.config.fillOpacity,onOpacityChange:e=>{r(n.id,{fillOpacity:e})}})},MA=[{value:"0",label:"None"},{value:"2",label:"Thin (2px)"},{value:"8",label:"Medium (8px)"},{value:"16",label:"Thick (16px)"}],Mw=e=>{let{annotation:t,onAttributesUpdate:n}=e,r=MA.find(e=>e.value===String(t.config.strokeWidth))||MA[0];return(0,g.jsx)(wu,{options:MA,value:r,onChange:e=>{n(t.id,{strokeWidth:Number(e.value)})},shouldFitContent:!0,variant:"subtle",renderValue:()=>(0,g.jsx)(bX,{}),tooltip:{label:"Border",hasInvertedTheme:!1}})},Mk=h.I4.div(o8(),uA("overlayBackground"),sV.lg,sF.sm,hK(.5),sN.modern,sB(uA("overlayBorderGradient"),1,"lg")),MS=(0,O.forwardRef)((e,t)=>{let{annotation:n,onAttributesUpdate:r,onDelete:i,seriesColorOptions:o}=e;return(0,g.jsxs)(Mk,{role:"toolbar",ref:t,children:[(0,g.jsx)(Mj,{annotation:n,onAttributesUpdate:r,seriesColorOptions:o}),(0,g.jsx)(Mw,{annotation:n,onAttributesUpdate:r}),(0,g.jsx)(Lu,{annotationId:n.id,onDelete:i})]})});MS.displayName="ShapeAnnotationToolbar";let MP=e=>{let{annotation:t,onDuplicate:n,onDelete:r,onAttributesUpdate:i,zIndex:o,isNew:l,isEditable:a,seriesColorOptions:s}=e,[u,c]=(0,O.useState)(null),d=mr("underPlotPortalId"),p=x$("plotOffsetX"),h=x$("plotOffsetY"),f=x$("plotWidth"),m=x$("plotHeight"),y=(0,O.useRef)(null),x=(0,O.useRef)(null),{editorHandlers:b,isFocused:C,isHovered:v,blurAnnotation:j,focusAnnotation:A}=P7({id:t.id,editorRef:x,toolbarRef:y,isNew:l});P9({annotationId:t.id,isEditable:a,isFocused:C,onDelete:r,onDuplicate:n,onEscPress(){var e;null==(e=x.current)||e.blur(),j()}});let[w,k]=(0,O.useState)({config:t.config,isInteracting:!1}),{isInHighlightMode:S}=bc(),P=w.isInteracting?w.config:t.config,L=P.x*f,M=P.y*m,T=P.width*f,D=P.height*m;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(md,{container:document.getElementById(d),children:(0,g.jsx)(Mv,{width:T,height:D,style:{left:p+L,top:h+M,pointerEvents:S?"none":"auto"},children:(0,g.jsx)("rect",{x:"0",y:"0",width:T,height:D,fill:P.fillColor,fillOpacity:P.fillOpacity,strokeWidth:P.strokeWidth,stroke:P.fillColor})})}),a&&(0,g.jsx)(MC,Object.assign({},b,{ref:x,tabIndex:0,style:{zIndex:o,left:L,top:M,width:T,height:D,pointerEvents:S?"none":"auto"},children:(0,g.jsx)(Mb,{ref:c,isHovered:v,isFocused:C,isInteracting:w.isInteracting,annotation:t,onAttributesUpdate:i,setInteractingState:k,focusAnnotation:A})})),(0,g.jsx)(jd,{anchorElement:u,isWithinPortal:!0,isOpen:C,placement:"top",offset:[0,8],children:()=>(0,g.jsx)(MS,{ref:y,annotation:t,onAttributesUpdate:i,onDelete:r,seriesColorOptions:s})})]})},ML=(0,e$.yX)([e$.zW,e$.sx,e$.cM]),MM=e=>{let{id:t,annotationRef:n,onDrag:r,onResize:i}=e,o=((e,t)=>{let n=x$("plotHeight"),r=x$("plotWidth");return{draggable:!0,onDrag:i=>{let{target:o,translate:[l,a]}=i;void 0!==l&&void 0!==a&&(o.style.transform="translateY(-50%) translate(".concat(hZ(l),"px, ").concat(hZ(a),"px)"),t(e,l/r,a/n))}}})(t,r),l=((e,t)=>{let n=x$("plotHeight"),r=x$("plotWidth");return{resizable:!0,keepRatio:!1,onResizeStart:e=>{let{setMin:t}=e;t([30,0])},onResize:i=>{let{target:o,width:l,drag:{translate:[a,s],dist:[,u]}}=i;void 0!==l&&void 0!==a&&void 0!==s&&void 0!==u&&(o.focus(),o.style.transform="translateY(-50%) translate(".concat(hZ(a),"px, ").concat(hZ(s-u),"px)"),o.style.width="".concat(hZ(l),"px"),t(e,a/r,(s-u)/n,l/r))},onResizeEnd:e=>{let{target:t}=e;t.focus()},edge:["w","e"],renderDirections:["w","e"]}})(t,i),a={snappable:!0,bounds:Object.assign({position:"css"},LD())};return(0,g.jsx)(ML,Object.assign({flushSync:G.flushSync,target:n},o,l,a,{useResizeObserver:!0,useMutationObserver:!0,origin:!1,preventDefault:!1}))},MO=(e,t)=>e.some(e=>e.value===t)?"fade":"opaque",MT=e=>{let{seriesColorOptions:t,onAttributesUpdate:n,annotation:r,getColorStyles:i}=e,o=gz(e=>e.theme.canvasColors);return(0,g.jsx)(jq,{tooltip:"Background",value:r.config.backgroundColor||"transparent",onChange:e=>{n(r.id,{backgroundColor:e,backgroundColorStyle:MO(o,e)})},seriesColorOptions:t,getSwatchStyles:i,showTransparentOption:!0})},MD=(0,O.createContext)(null),MI=()=>{let e=(0,O.useContext)(MD);if(!e)throw Error("ReportEditorProvider is not defined");return e},ME="graphy-document-title-node",MH=eE.bP.create({name:"documentTitle",content:"text*",addOptions:()=>({onDocumentTitleChange:()=>{},HTMLAttributes:{"data-title":!0,class:ME}}),parseHTML:()=>[{tag:"h1[data-title]"}],renderHTML(e){var t;let{HTMLAttributes:n}=e;return["h1",(0,eE.KV)(null!=(t=this.options.HTMLAttributes)?t:{},n),0]},onTransaction(e){var t,n,r;let{transaction:i}=e;if(!i.docChanged)return;let o=null==(n=null==(t=i.docs[i.docs.length-1])?void 0:t.firstChild)?void 0:n.textContent,l=null==(r=i.doc.firstChild)?void 0:r.textContent;o!==l&&this.options.onDocumentTitleChange(l||"")}}),MV=(0,h.AH)(le(),ME,mW,hK(4)),MF=eG.A.extend({content:"".concat(MH.name," block*")});function MB(){let{onDocumentTitleChange:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[MH.configure({onDocumentTitleChange:e}).extend(),MF,...kS({skip:[eG.A]}),kP.configure({placeholder:e=>{let{node:t}=e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled report";return e.type.name===MH.name?t:""}(t)}}),e_.JU]}let Mz=(0,eE._w)(MB()),MR=e=>kI(Mz,e),MY=e=>{var{children:t,content:n,isEditable:r,onError:i}=e,o=s$(e,["children","content","isEditable","onError"]);let l=kk(Object.assign({extensions:MB({}),content:n,isEditable:r,onError:i,isValidContent:MR},o)),a=(0,O.useMemo)(()=>({editor:l}),[l]);return(0,g.jsx)(MD.Provider,{value:a,children:t})},MG=(0,h.AH)(lt(),MV,kL),MW=(0,h.I4)(kv)(ln(),MG),MU=()=>{let{editor:e}=MI();return(0,g.jsxs)(MW,{children:[(0,g.jsx)(ke,{editor:e}),(0,g.jsx)(kt,{editor:e})]})},MN={type:"doc",content:[{type:"documentTitle"}]};function MK(e){let{placeholder:t}=e;return[...kS({skip:[ki]}),kP.configure({placeholder:t})]}let MZ=(0,eE._w)(MK({placeholder:""})),MX=e=>kI(MZ,e),M_=(0,h.AH)(lr(),kL,sd.bold),MQ=(0,h.I4)(kv)(li(),M_),MJ=["color","bold","italic","underline","link"],Mq=e=>{var{placeholder:t,children:n,isEditable:r=!0}=e,i=s$(e,["placeholder","children","isEditable"]);let o=kk(Object.assign({extensions:MK({placeholder:t}),isValidContent:MX,isEditable:r},i));return(0,g.jsxs)(MQ,{children:[(0,g.jsx)(ke,{editor:o,supportedOptions:MJ}),(0,g.jsx)(kt,{editor:o}),n]})},M$=Number(Number.parseFloat(String(40/18)).toFixed(2)),M1={min:{heading:40,text:18},max:{heading:53,text:24}},M0={min:{heading:48,text:23},max:{heading:67,text:31}},M2=e=>(e=>{let t="offsetWidth";return e[t]||(e.innerText=window.getComputedStyle(e,":before").getPropertyValue("content")),e[t]})(e),M5=h.I4.div(lo(),kr,kr),M3=e=>{let{editor:t,lineHeightVariant:n,onFontSizeChange:r}=e,i=(0,O.useRef)(null),o=(0,O.useCallback)(()=>{if(i.current){i.current.innerHTML=(null==t?void 0:t.getHTML())||"";let e=((e,t)=>{let{lineHeightVariant:n}=t,r=e.clientWidth,i=e.clientHeight,o=e.querySelector("p"),l=e.querySelector("h1");if(!o||!l)return null;let a=M0[n].heading,s=M0[n].text,u=M1[n].heading,c=M1[n].text,d,p=14,h=24,g=14;for(;p<=h;){let e=Math.round((d=h+p>>1)*M$);o.style.fontSize=d+"px",l.style.fontSize=e+"px",e<=u&&d<=c&&M2(o){o()},[o]),(0,O.useEffect)(()=>(null==t||t.on("update",()=>{o()}),()=>{null==t||t.off("update")}),[t,o]),(0,g.jsx)(M5,{"aria-hidden":!0,children:(0,g.jsx)("div",{contentEditable:"true",ref:i})})},M7=(0,h.AH)(ll(),kL,kr,kr,hq,kr,Math.round(18*M$),kr,18,uA("textSecondary")),M9=(0,h.AH)(la(),M5),M4=(0,h.I4)(kv)(lp(),M7,e=>{let{$format:t}=e;return"STACKED"===t&&M9},e=>{let{$format:t,$isFirstChildEmpty:n}=e;return"INLINE"===t&&(0,h.AH)(lu(),hK(.5),n&&(0,h.AH)(ls()))},e=>{let{$shouldFitContainer:t}=e;return t&&(0,h.AH)(lc())},kr,e=>{let{$lineHeightVariant:t}=e;return M0[t].heading},kr,e=>{let{$lineHeightVariant:t}=e;return M0[t].text},e=>{let{$fontSizeOverride:t}=e;return t&&(0,h.AH)(ld(),t.heading,t.text)}),M6=e=>{var{shouldFitContainer:t=!1,format:n="STACKED",children:r,editor:i,lineHeightVariant:o="min"}=e,l=s$(e,["shouldFitContainer","format","children","editor","lineHeightVariant"]);let[a,s]=(0,O.useState)(null),u=(0,O.useMemo)(()=>{let e=null==i?void 0:i.state.doc.firstChild;return!(null==e?void 0:e.isLeaf)&&!(null==e?void 0:e.childCount)},[null==i?void 0:i.state.doc.content]);return(0,g.jsxs)(M4,{$isFirstChildEmpty:u,$format:n,$fontSizeOverride:a,$shouldFitContainer:t,$lineHeightVariant:o,children:[(0,g.jsx)(kt,Object.assign({},l,{editor:i})),i&&(0,g.jsx)(M3,{editor:i,lineHeightVariant:o,onFontSizeChange:s}),r]})},M8=eE.YY.create({name:"leanEditorTabCursor",addKeyboardShortcuts(){return{Tab:()=>{let e=this.editor.state.selection.empty,t=this.editor.state.selection.$anchor.parent,n=1===this.editor.state.selection.$anchor.depth,r=this.editor.state.selection.$anchor.pos{let e=this.editor.state.selection.empty,t=this.editor.state.selection.$anchor.parent,n=1===this.editor.state.selection.$anchor.depth,r=this.editor.state.selection.$anchor.pos>1,i=this.editor.view.endOfTextblock("backward");if(!(e&&t&&n&&r&&i))return!0;let o=this.editor.state.selection.from-2;return!o||this.editor.chain().focus(o).run()}}}}),Oe=[eY.Ay,eU.Ay,eN.Ay,kx,eK.A,e_.lb],Ot={heading:"123",paragraph:"Label"};function On(){let{contentSpec:e,placeholder:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[...Oe,eG.A.extend({content:e}),km,ka,M8,kP.configure({placeholder:e=>{var n;let{node:r}=e;return r.attrs.placeholder?r.attrs.placeholder:null!=(n=Ot[r.type.name])?n:t}})]}let Or=(0,O.createContext)(null),Oi=uE(Or,"LeanEditorContext"),Oo=e=>{var{children:t,placeholder:n,contentSpec:r,content:i,isEditable:o=!0,onError:l}=e,a=s$(e,["children","placeholder","contentSpec","content","isEditable","onError"]);let s=kk(Object.assign({extensions:On({placeholder:n,contentSpec:r}),content:i,isEditable:o,onError:(0,O.useCallback)(e=>{throw l&&l(e),new ps("lean-editor","Could not display ProseMirror content",e)},[l]),isValidContent:e=>{let t;return t={contentSpec:r,placeholder:n},kI((0,eE._w)(On(t)),e)}},a)),u=(0,O.useMemo)(()=>({editor:s}),[s]);return(0,g.jsx)(Or.Provider,{value:u,children:t})},Ol=e=>{var{children:t}=e,n=s$(e,["children"]);let{editor:r}=Oi();return(0,g.jsx)(M6,Object.assign({editor:r},n,{children:t}))};!function(e){e.Data="DATA",e.InlineMetric="INLINE_METRIC"}(u||(u={}));let Oa={HEADING_PARAGRAPH:"heading paragraph"},Os=e=>Oa[e],Ou={"heading paragraph":{type:"doc",content:[{type:"heading",attrs:{level:1}},{type:"paragraph"}]}},Oc=e=>Ou[Os(e)],Od={value:16,label:"Medium"},Op=[{value:12,label:"Small"},Od,{value:20,label:"Large"},{value:24,label:"Extra Large"},{value:32,label:"Huge"}],Oh=e=>{var t;let{editor:n}=e,r=null!=(t=Op.find(e=>e.value===n.getAttributes("textStyle").fontSize))?t:Od;return(0,g.jsx)(wu,{variant:"subtle",options:Op,value:r,onChange:e=>{n.chain().focus().selectAll().setFontSize(e.value.toString()).run()},shouldFitContent:!0,renderValue:e=>e.label,renderItem:e=>{let{menuItemProps:t,option:n,label:r,description:i}=e;return(0,g.jsx)(AW,Object.assign({},t,{description:i,children:(0,g.jsx)("span",{style:{fontSize:n.value+"px",lineHeight:1.15*n.value+"px"},children:r})}))},tooltip:{label:"Font size",hasInvertedTheme:!1}})},Og=(0,h.AH)(lh(),kr,16),Of=(0,h.I4)(kv)(lg(),Og,kL,uA("white")),Om=h.I4.div(lf()),Oy=e=>{let{onDelete:t}=e;return(0,g.jsx)(ja,{label:"Delete",hasInvertedTheme:!1,children:(0,g.jsx)(vG,{variant:"subtle",onClick:()=>t(),iconBefore:(0,g.jsx)(bw,{})})})},Ox=h.I4.div(lm(),uA("overlayBackground"),sV.lg,sF.sm,hK(.5),sN.modern,sB(uA("overlayBorderGradient"),1,"lg")),Ob=e=>{let{annotation:t,editor:n,inheritedFont:r,seriesColorOptions:i,onAttributesUpdate:o,onDelete:l,getBackgroundColorStyles:a}=e,s=me();return(0,g.jsxs)(Ox,{role:"toolbar","aria-label":"Free-form text toolbar",children:[(0,g.jsx)(MT,{seriesColorOptions:i,annotation:t,onAttributesUpdate:o,getColorStyles:a}),(0,g.jsx)(w3,{editor:n,seriesColorOptions:i,renderIcon:e=>(0,g.jsx)(bZ,{textColor:e})}),(0,g.jsx)(wN,{editor:n,inheritedFont:r,fonts:s}),(0,g.jsx)(Oh,{editor:n}),(0,g.jsx)(w5,{editor:n}),(0,g.jsx)(Oy,{onDelete:l})]})},OC=eE.YY.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,renderHTML:e=>e.fontSize?{style:"font-size: calc(".concat(e.fontSize,"px * var(--typography-scale))")}:{},parseHTML:e=>{let t=Number.parseInt(e.style.fontSize,10);return Number.isNaN(t)?"":t}}}}]},addCommands:()=>({setFontSize:e=>t=>{let{chain:n}=t;return n().setMark("textStyle",{fontSize:e}).run()},unsetFontSize:()=>e=>{let{chain:t}=e;return t().setMark("textStyle",{fontSize:null}).run()}})}),Ov=function(){let{placeholder:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[eY.Ay,eU.Ay,eX.xJ,eX.Q1,OC,kA,eZ.A.configure({types:["paragraph"],defaultAlignment:"center"}),eG.A,eK.A,eW.A,km,e_.lb,kP.configure({placeholder:e})]},Oj=(0,eE._w)(Ov()),OA=e=>kI(Oj,e),Ow=O.forwardRef(function(e,t){var{spellCheck:n,isToolbarVisible:r,inheritedFont:i,seriesColorOptions:o,onAttributesUpdate:l,onDelete:a,annotation:s,getBackgroundColorStyles:u}=e;let c=(e=>{var{placeholder:t,onError:n,content:r,isEditable:i=!0}=e,o=s$(e,["placeholder","onError","content","isEditable"]);return kk(Object.assign({extensions:Ov({placeholder:t}),content:r,isEditable:i,onError:(0,O.useCallback)(e=>{throw n&&n(e),new ps("text-annotation-editor","Could not display ProseMirror content",e)},[n]),isValidContent:OA},o))})(Object.assign(Object.assign({},s$(e,["spellCheck","isToolbarVisible","inheritedFont","seriesColorOptions","onAttributesUpdate","onDelete","annotation","getBackgroundColorStyles"])),{content:s.config.content})),[d,p]=(0,O.useState)(null);(0,O.useImperativeHandle)(t,()=>({editor:c}),[c]);let h=ma(),f=(null==c?void 0:c.getAttributes("textStyle").color)||h.values.textSecondary;return c?(0,g.jsxs)(Of,{style:{"--selection":f},ref:p,children:[(0,g.jsx)(eI.$Z,{editor:c,spellCheck:n}),(0,g.jsx)(jd,{anchorElement:d,isWithinPortal:!0,isOpen:r,placement:"top",offset:[0,8],children:()=>(0,g.jsx)(Om,{children:(0,g.jsx)(Ob,{editor:c,inheritedFont:i,seriesColorOptions:o,onAttributesUpdate:l,onDelete:a,annotation:s,getBackgroundColorStyles:u})})})]}):null}),Ok=h.I4.div(ly(),kC,Og),OS=e=>{let{content:t}=e,[n,r]=(0,O.useState)("");return(0,O.useEffect)(()=>{try{r((e=>{try{return(0,eE.Zx)(e,Ov())}catch(e){throw new ps("text-annotation-editor.content-to-html","Could not parse ProseMirror document to HTML",e)}})(t))}catch(e){}},[t]),(0,g.jsx)(Ok,{dangerouslySetInnerHTML:{__html:n}})},OP=h.I4.div(lx(),kL,kr),OL=e=>{var{editor:t,seriesColorOptions:n}=e,r=s$(e,["editor","seriesColorOptions"]);return(0,g.jsxs)(kv,{children:[(null==t?void 0:t.isEditable)?(0,g.jsx)(ke,{editor:t,seriesColorOptions:n}):null,(0,g.jsx)(OP,{children:(0,g.jsx)(kt,Object.assign({editor:t},r))})]})},OM=eG.A.extend({content:"block{2, }"});function OO(e){let{titlePlaceholder:t="Untitled",subtitlePlaceholder:n="Add a subtitle"}=e;return[OM.configure({}),...kS({skip:[eG.A,eH.Ay,ka]}),kl({addAttributes:()=>({level:{default:3,rendered:!1}})}),kP.configure({showOnlyWhenEditable:!1,placeholder(e){var r;let{editor:i}=e;return"heading"===(null==(r=i.state.doc.firstChild)?void 0:r.type.name)?t:n}})]}let OT=(0,eE._w)(OO(Object.assign({},c))),OD=e=>kI(OT,e);function OI(e,t){var{titlePlaceholder:n,subtitlePlaceholder:r,onError:i,content:o,isEditable:l=!0}=e,a=s$(e,["titlePlaceholder","subtitlePlaceholder","onError","content","isEditable"]);let s=OO({titlePlaceholder:n,subtitlePlaceholder:r}),u=(0,O.useCallback)(e=>{null==i||i(e)},[i]);return kk(Object.assign({extensions:s,content:o?"string"==typeof o?o:!o.content||o.content.length<2?Object.assign(Object.assign({},o),{content:[...o.content||[],{type:"paragraph"}]}):o:void 0,isEditable:l,onError:u,isValidContent:OD},a),t)}let OE=pU(),OH=e=>""===eQ.bP.fromJSON(OT,e).textContent,OV={type:"doc",content:[{type:"heading",attrs:{level:6}}]},OF=D.Ik({type:D.eu("doc"),content:D.YO(D.Ik({type:D.eu("heading"),placeholder:D.Yj().optional(),content:D.Vx(),attrs:D.Ik({level:D.eu(6)})})).length(1)});function OB(e){let{caption:t}=e;return t?"object"==typeof t?t:{type:"doc",content:[{type:"heading",attrs:{level:6},content:[{type:"text",text:t}]}]}:OV}let Oz=e=>!("text"!==e.type||e.text&&""!==e.text)||!!e.content&&e.content.some(e=>Oz(e)),OR=e=>{if(Oz(e))return"";let t=eQ.bP.fromJSON(OT,e);return(0,eE.q4)(t)};function OY(e){var t,n,r;let i=null==(t=e.content)?void 0:t[0],o=null!=(r=null==(n=e.content)?void 0:n.slice(1))?r:[];return{title:((e,t)=>{let n=[...e];return n.length>t?n.slice(0,t).join(""):e})(i?OR({type:"doc",content:[i]}):"",191),subtitle:o.length?OR({type:"doc",content:o}):""}}let OG=e=>OY(e).title;function OW(e){return OR(e)}function OU(e){var t,n,r;let{titleDocument:i,newTitle:o}=e,l=null==(t=i.content)?void 0:t[0],a=null!=(r=null==(n=i.content)?void 0:n.slice(1))?r:[];return{type:"doc",content:[l?Object.assign(Object.assign({},l),{content:[{type:"text",text:o}]}):{type:"heading",attrs:{level:3},content:[{type:"text",text:o}]},...a.length?[{type:"paragraph",content:a}]:[]]}}class ON{with(e,t){return new ON(Object.assign(Object.assign({},this.state),{[e]:Array.isArray(t)?[...t]:t}))}withMany(e){return new ON(Object.assign(Object.assign({},this.state),e))}build(){return this.serialize(this.state)}serialize(e){return e instanceof ON?e.build():Array.isArray(e)?this.serializeArray(e):(0,S.A)(e)?this.serializeObject(e):e}serializeArray(e){return e.map(e=>this.serialize(e))}serializeObject(e){let t={};for(let n in e)t[n]=this.serialize(e[n]);return t}constructor(e){this.state=e,this.state=e}}new ON({theme:"graphy",palette:"graphy",borderStroke:cJ.border,borderType:c$.enum.gradient,borderStyleName:"lilac",shouldHideCaption:!0,shouldHideSourceSection:!0,shouldHideLogo:!1}),new ON({dataType:{type:gA.Text},key:"some-key",defaultLabel:"Default label",aggregation:void 0}),new ON({type:gA.Text});let OK=new ON({type:"doc",content:[new ON({type:"paragraph"})]}),OZ=h.I4.div(lC(),uA("textPrimary"),e=>{let{$canReceivePointerEvents:t}=e;return t?"auto":"none"},e=>{let{$isEditing:t}=e;return t?"text":"default"},kr,e=>{let{$isEditing:t}=e;return!t&&(0,h.AH)(lb())}),OX=e=>{let{chartTheme:t,color:n,backgroundStyle:r="opaque"}=e;return"transparent"===n?{fillColor:"transparent",borderColor:"transparent"}:"fade"===r?{fillColor:uP(n,t.values.grey100,.5),borderColor:uP(n,t.values.grey0,.2)}:ph(n)},O_=e=>{var t;let{annotation:n,onEdit:r,onAttributesUpdate:i,onDelete:o,editorRef:l,isEditable:a,isInteractive:s,isFocused:u,isNew:c,inheritedFont:d,seriesColorOptions:p}=e,[h,f]=(0,O.useState)(!1),m=gz(e=>e.theme.canvasColors),y=bK(),x=null!=(t=n.config.backgroundColor)?t:"transparent",b=gz(e=>e.theme),{fillColor:C,borderColor:v}=(0,O.useMemo)(()=>OX({chartTheme:b,color:y(x),backgroundStyle:n.config.backgroundColorStyle}),[n.config.backgroundColorStyle,x,b,y]);return(0,g.jsx)(OZ,{$canReceivePointerEvents:u&&s,$isEditing:h,style:{backgroundColor:C,boxShadow:"0 0 0 1.5px ".concat(v)},children:a?(0,g.jsx)(Ow,{ref:l,annotation:n,placeholder:"Text",onAttributesUpdate:i,onDelete:()=>{o(n.id)},onUpdate:()=>{var e,t;let i=null==(t=null==(e=l.current)?void 0:e.editor)?void 0:t.getJSON();i&&r(n.id,i)},spellCheck:h,onFocus:()=>{var e,t;f(!0),null==(t=null==(e=l.current)?void 0:e.editor)||t.commands.selectAll()},onBlur:()=>{var e,t,r;f(!1),(null==(t=null==(e=l.current)?void 0:e.editor)?void 0:t.isEmpty)?o(n.id):null==(r=window.getSelection())||r.removeAllRanges()},autofocus:c,isToolbarVisible:u,inheritedFont:d,seriesColorOptions:p,getBackgroundColorStyles:e=>OX({chartTheme:b,color:e,backgroundStyle:MO(m,e)})}):(0,g.jsx)(OS,{content:n.config.content})})},OQ=(0,h.AH)(lv(),.75),OJ=(0,h.AH)(lj(),1,uA("annotationFrameBorderColor")),Oq=h.I4.div(lw(),e=>{let{$isEditable:t,$isInteractive:n}=e;return t&&n?"auto":"none"},OQ,e=>{let{$isFocused:t}=e;return t&&(0,h.AH)(lA(),OJ)},uA("alert"),0,OQ,uA("annotationFrameBorderColor"),uA("annotationFrameBorderColor")),O$=e=>{let{x:t,y:n,width:r,plotWidth:i,plotHeight:o,bounds:l}=e,a=hZ(r*i);a>-l.left+i-l.right&&(a=-l.left+i-l.right);let s=hZ(t*i);return si-l.right&&(s=i-l.right-a),{transform:"translateY(-50%) translate(".concat(s,"px, ").concat(hZ(n*o),"px)"),width:a}},O1=e=>{let{zIndex:t,isNew:n,annotation:r,onDuplicate:i,onDelete:o,onDrag:l,onAttributeUpdate:a,onResize:s,onTextEdit:u,isEditable:c=!1,isInteractive:d=!1,inheritedFont:p,seriesColorOptions:h}=e,f=(0,O.useRef)(null),m=(0,O.useRef)(null),{isFocused:y,frameHandlers:x,setIsFocused:b}=(e=>{let{id:t,isEditable:n,annotationRef:r}=e,{setFocusedAnnotationId:i,focusedAnnotationId:o}=P5(),[l,a]=(0,O.useState)(!1);return(0,O.useEffect)(()=>{let e=e=>{var t;n&&l&&(e.target instanceof Element&&(null==(t=r.current)?void 0:t.contains(e.target))||e.target instanceof Element&&e.target.closest('[role="toolbar"][aria-label="Free-form text toolbar"]')||(a(!1),i(null)))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,n,l,i]),(0,O.useEffect)(()=>{null!==o&&o!==t&&a(!1)},[o,t]),gW(()=>{o===t&&i(null)}),{isFocused:l,setIsFocused:a,frameHandlers:{onFocus:()=>{n&&(a(!0),i(t))}}}})({id:r.id,isEditable:c,annotationRef:f});P9({annotationId:r.id,isEditable:c,isFocused:y,textEditorRef:m,onDuplicate:i,onDelete:o,onEscPress(){var e,t;b(!1),null==(t=null==(e=m.current)?void 0:e.editor)||t.commands.blur()}});let C=(e=>{let{x:t,y:n,width:r}=e,i=LD(),o=x$("plotHeight"),l=x$("plotWidth"),[a,s]=(0,O.useState)(O$({x:t,y:n,width:r,plotWidth:l,plotHeight:o,bounds:i}));return(0,O.useEffect)(()=>{s(O$({x:t,y:n,width:r,plotWidth:l,plotHeight:o,bounds:i}))},[l,o,i.top,i.right,i.bottom,i.left]),a})(r.config.dimensions);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Oq,Object.assign({ref:f},x,{tabIndex:c?0:void 0,$isEditable:c,$isInteractive:d,$isFocused:y,style:Object.assign(Object.assign({},C),{zIndex:t}),children:(0,g.jsx)(O_,{annotation:r,onEdit:u,onDelete:o,onAttributesUpdate:a,editorRef:m,isEditable:c,isInteractive:d,isFocused:y,isNew:n,inheritedFont:p,seriesColorOptions:h})})),c&&d&&(0,g.jsx)(MM,{id:r.id,annotationRef:f,onDrag:l,onResize:s})]})},O0={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:f_},O2=e=>{var t;let{isEditable:n=!1,zoom:r=1,plotEffect:i,annotations:o,onAddShape:l,onAddTextAnnotation:a,onAddArrow:s,onAddDifferenceArrow:u,onDuplicate:c,onDelete:d,onDragTextAnnotation:p,onResizeTextAnnotation:h,onTextEdit:f,onTextAttributeUpdate:m,onArrowPointsUpdate:y,onArrowAttributeUpdate:x,getConnectedDataPointIds:b,onDifferenceArrowConnect:C,onDifferenceArrowAttributeUpdate:v,onShapeAttributesUpdate:A,seriesColorOptions:w,flipAxes:k}=e,S=mr("overPlotPortalId"),P=x$("plotOffsetX"),L=x$("plotOffsetY"),M=x$("plotWidth"),T=x$("plotHeight"),D=mr("font"),{canUserInteractWithAddon:I,annotationsAddonRef:E}=bc(),H=I("annotations"),V=(0,O.useCallback)(()=>{t(.375,.25,.25,.5)},[t=l]),F=(e=>(0,O.useCallback)((t,n,r)=>{e(t-.1,n,.2,r)},[e]))(a),B=(e=>{let t=x$("plotWidth"),n=x$("plotHeight");return(0,O.useCallback)((r,i,o)=>{let l=.15*Math.min(t,n);e(r-l*Math.cos(o)/t,i-l*Math.sin(o)/n,r+l*Math.cos(o)/t,i+l*Math.sin(o)/n)},[e,n,t])})(s),z=(e=>{let{allAnnotations:t,getConnectedDataPointIds:n,onAdd:r}=e,i=CN(),o=(0,O.useMemo)(()=>[...(0,ei.Ay)(i,e=>Md(e.groupValues)).values()].map(e=>{var t,n;let r=null!=(n=null==(t=e[0])?void 0:t.flipAxes)&&n;return(0,j.A)(e,r?"yPosition":"xPosition","desc")}).flat(),[i]);return(0,O.useCallback)(()=>{let e=t.filter(e=>"difference-arrow"===e.config.type);for(let t=0;t{let t=n(e);return t.start===i.id&&t.end===l.id||t.start===l.id&&t.end===i.id}))return void r(i.id,l.id)}},[t,n,r,o])})({allAnnotations:o,getConnectedDataPointIds:b,onAdd:u});(0,O.useImperativeHandle)(E,()=>({addText:F,addArrow:B,addShape:V,addDifferenceArrow:z}));let{focusedAnnotationId:R}=P5(),G=(e=>{let{annotations:t}=e,n=(0,O.useRef)(t.map(e=>e.id));return(0,O.useCallback)(e=>!n.current.includes(e)&&(n.current.push(e),!0),[])})({annotations:o});return(e=>{let{annotations:t,getConnectedDataPointIds:n,flipAxes:r}=e,i=(0,Y.A)(),o=(0,O.useMemo)(()=>t.filter(e=>"difference-arrow"===e.config.type),[t]),l=mr("textScale"),a=Ma(),s=L6(),u=x$("plotWidth"),c=mr("setPlotPadding");(0,O.useEffect)(()=>{let e=0;for(let t of o){let o=t.config.attributes,{startDataPoint:c,endDataPoint:d}=a(t,n),p=Mn({intl:i,attributes:o,flipAxes:r,textScale:l,startDataPoint:c,endDataPoint:d}),{measuredLabel:h}=s(Object.assign({attributes:o,labelColor:"none"},p)),{labelLineHeight:g,labelPadding:f}=LV(o.size,l),m=r?p.labelPosition.x+h.width/2+f-u:-(p.labelPosition.y-g/2-f);m>e&&(e=m)}c(e)},[o,r,n,a,i,s,u,c,l])})({annotations:o,getConnectedDataPointIds:b,flipAxes:k}),(0,g.jsx)(md,{container:document.getElementById(S),zIndex:f6.annotations,resetFontSize:!1,children:(0,g.jsxs)(P$,Object.assign({style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),width:M,height:T}},O0,{children:[o.map((e,t)=>{let l=R===e.id?o.length+1:t+1;switch(e.config.type){case"text":return(0,g.jsx)(O1,{annotation:e,onDuplicate:c,onDelete:d,onDrag:p,onResize:h,onTextEdit:f,onAttributeUpdate:m,isNew:G(e.id),isInteractive:H,isEditable:n,zIndex:l,inheritedFont:D.body.fontId,seriesColorOptions:w},e.id);case"arrow":return(0,g.jsx)(LE,{annotation:e,onPointsUpdate:y,onAttributeUpdate:x,onDuplicate:c,onDelete:d,isNew:G(e.id),isInteractive:H,isEditable:n,zoom:r,zIndex:l,seriesColorOptions:w},e.id);case"difference-arrow":return(0,g.jsx)(Ms,{annotation:e,zIndex:l,getConnectedDataPointIds:b,onAttributeUpdate:v,onConnect:C,onDelete:d,isNew:G(e.id),isInteractive:H,isEditable:n,zoom:r,plotEffect:i,seriesColorOptions:w},e.id);case"shape":return(0,g.jsx)(MP,{annotation:e,onDuplicate:c,onDelete:d,onAttributesUpdate:A,isNew:G(e.id),isEditable:n,zIndex:l,seriesColorOptions:w})}}),(0,g.jsx)(P1,{id:P6(S)}),(0,g.jsx)(P0,{id:P8(S)})]}))})},O5=e=>(0,g.jsx)(P3,{children:(0,g.jsx)(O2,Object.assign({},e))}),O3=e=>({id:"annotations",render:()=>(0,g.jsx)(O5,Object.assign({},e))}),O7=e=>"arrow"===e.config.type||"text"===e.config.type||"difference-arrow"===e.config.type||"shape"===e.config.type,O9=e=>{let t,{annotation:n,dataPoint:r,formatPieValue:i,formatAlphaValue:o,formatYValue:l,highlightStyle:a}=e,{getLegendSymbolFill:s}=Sp();if("tooltip"===n.config.type&&n.config.caption&&(t=n.config.caption,!OF.safeParse(t).success)){let e=kN(n.config.caption);return(0,g.jsx)(Sd,{items:[{label:e}],shouldTruncate:!0})}return(0,g.jsx)(Sd,{items:[{label:yw(r)?(0,g.jsx)(Sr,{dataPoint:r,formatter:i}):yA(r)?yj(r)?(0,g.jsx)(k7,{dataPoint:r,formatter:o}):(0,g.jsx)(k6,{dataPoint:r,formatter:l}):null,legendSymbol:(0,g.jsx)(ue,{symbol:r.type,fill:s(r,a),pattern:Sl(r)})}]})},O4=[{placement:"top",preventOverlap:!0},{placement:"right",preventOverlap:!0},{placement:"left",preventOverlap:!0},{placement:"bottom",preventOverlap:!0},{placement:"top",preventOverlap:!1},{placement:"right",preventOverlap:!1},{placement:"left",preventOverlap:!1},{placement:"bottom",preventOverlap:!1}],O6=[{placement:"right",preventOverlap:!0},{placement:"left",preventOverlap:!0},{placement:"top",preventOverlap:!0},{placement:"bottom",preventOverlap:!0},{placement:"right",preventOverlap:!1},{placement:"left",preventOverlap:!1},{placement:"top",preventOverlap:!1},{placement:"bottom",preventOverlap:!1}],O8=e=>um(e)&&"highlight"!==e.config.type,Te=e=>{let{placement:t,measuredWidth:n,measuredHeight:r,markerPosition:i}=e;switch(t){case"top":return{x1:i.x-n/2,y1:i.y-9-r,x2:i.x+n/2,y2:i.y-9};case"right":return{x1:i.x+9,y1:i.y-r/2,x2:i.x+9+n,y2:i.y+r/2};case"bottom":return{x1:i.x-n/2,y1:i.y+9,x2:i.x+n/2,y2:i.y+9+r};case"left":return{x1:i.x-9-n,y1:i.y-r/2,x2:i.x-9,y2:i.y+r/2}}},Tt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.x1+nt.x1&&e.y1+nt.y1},Tn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.x1<-r||e.y1<-r||e.x2>t+r||e.y2>n+r},Tr={"clapping-hands":{aspectRatio:"1.059 / 1",src:"data:image/png;base64,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"},"grinning-face":{aspectRatio:"1.03 / 1",src:"data:image/png;base64,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"},rocket:{aspectRatio:"1.046 / 1",src:"data:image/png;base64,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"},"thumbs-down":{aspectRatio:"1.063 / 1",src:"data:image/png;base64,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"},"thumbs-up":{aspectRatio:"1.063 / 1",src:"data:image/png;base64,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"}},Ti=h.I4.img(lk(),e=>{let{$isEditable:t}=e;return t?"all":"none"},1),To=O.memo(function(e){let{x:t,y:n,src:r,alt:i,onClick:o,isEditable:l,isInteractive:a}=e;return(0,g.jsx)(Ti,{src:r,alt:i,style:{transform:"translate(-50%, -50%) translate(".concat(t,"px, ").concat(n,"px)")},onClick:o,$isEditable:l&&a})}),Tl=e=>{let{sticker:t}=e,{src:n,aspectRatio:r}=Tr[t];return(0,g.jsx)("img",{src:n,style:{aspectRatio:r,width:"100%"},alt:t})},Ta=h.I4.div(lS(),2,e=>{let{$isInteractive:t}=e;return t?"all":"none"},4),Ts=h.I4.div(lL(),uA("textPrimary"),3,uA("textPrimary"),e=>{let{$isEditable:t}=e;return t?"all":"none"},e=>{let{$isEditable:t}=e;return t?"pointer":"default"},e=>{let{$isEditable:t}=e;return t&&(0,h.AH)(lP())}),Tu=e=>{let{x:t,y:n,vizColor:r,onClick:i,isEditable:o,isInteractive:l,vizTooltipProps:a,dataPoint:s,placement:u,highlightStyle:c,onUpdate:d}=e,{overlayState:{closestGeomDataPoint:p}}=yb(),h=(null==p?void 0:p.id)===s.id||(null==a?void 0:a.shouldShowMiniTooltip);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Ts,{onClick:i,$isEditable:o,style:{transform:"translate(-50%, -50%) translate(".concat(t,"px, ").concat(n,"px)"),backgroundColor:r},children:o&&l&&(0,g.jsx)(bO,{size:"xs"})}),(0,g.jsx)(Ta,{$isInteractive:l,style:{transform:Tc(u,t,n)},children:(0,g.jsx)(Sk,Object.assign({mode:"pinned",dataPoint:s,arrowPlacement:Td(u),highlightStyle:c,isEditable:o,onUpdate:d,shouldShowMiniTooltip:h},a))})]})},Tc=(e,t,n)=>{switch(e){case"top":return"translate(-50%, -100%) translate(".concat(t,"px, ").concat(n-9,"px)");case"right":return"translateY(-50%) translate(".concat(t+9,"px, ").concat(n,"px)");case"bottom":return"translateX(-50%) translate(".concat(t,"px, ").concat(n+9,"px)");case"left":return"translate(-100%, -50%) translate(".concat(t-9,"px, ").concat(n,"px)")}},Td=e=>{switch(e){case"top":return"bottom";case"right":return"left";case"bottom":return"top";case"left":return"right"}},Tp=e=>{let{annotation:t,placement:n,dataPoint:r,onDelete:i,onUpdate:o,isEditable:l=!0,isInteractive:a=!0,tooltipOptions:s,highlightStyle:u}=e,c=x8(r),d=t.config;switch(d.type){case"sticker":{let e=Tr[d.id].src;return(0,g.jsx)(To,Object.assign({},c,{alt:d.id,src:e,onClick:()=>l&&(null==i?void 0:i(t)),isEditable:l,isInteractive:a}))}case"tooltip":return(0,g.jsx)(Tu,Object.assign({dataPoint:r,placement:n,vizColor:r.vizColor,onClick:()=>l&&(null==i?void 0:i(t)),isEditable:l,isInteractive:a,vizTooltipProps:s,highlightStyle:u,onUpdate:e=>null==o?void 0:o(Object.assign(Object.assign({},t),{config:Object.assign(Object.assign({},d),{caption:e})}))},c));case"shape":case"highlight":case"text":case"arrow":case"difference-arrow":return null}},Th=h.I4.div(lM(),f6.pointAnnotations),Tg=e=>{var t,n,r,{annotations:i,getDataPointId:o,isEnabled:l=!0,highlightStyle:a,flipAxes:s}=e,u=s$(e,["annotations","getDataPointId","isEnabled","highlightStyle","flipAxes"]);let{hitboxes:c}=yb(),d=mr("overPlotPortalId"),p=x$("plotOffsetX"),h=x$("plotOffsetY"),f=x$("plotWidth"),m=x$("plotHeight"),y=yV(),x=(0,O.useMemo)(()=>{var e,t,n;return l?(e=>{var{measureReactContent:t,sortedAnnotations:n,plotWidth:r,plotHeight:i,flipAxes:o,highlightStyle:l}=e,a=s$(e,["measureReactContent","sortedAnnotations","plotWidth","plotHeight","flipAxes","highlightStyle"]);let s=[];for(let e of n){let n=t((0,g.jsx)(O9,Object.assign({annotation:e.annotation,dataPoint:e.dataPoint,highlightStyle:l},a))),u=!1,c=[...s].reverse(),d=o?O6:O4;e:for(let{placement:t,preventOverlap:o}of d){let l=Te({placement:t,measuredWidth:n.width,measuredHeight:n.height,markerPosition:e.markerPosition});if(!Tn(l,r,i,25)&&o){for(let e of c)if(Tt(l,Te({placement:e.placement,measuredWidth:e.measuredWidth,measuredHeight:e.measuredHeight,markerPosition:e.markerPosition}),2))continue e;s.push({annotation:e.annotation,measuredWidth:n.width,measuredHeight:n.height,dataPoint:e.dataPoint,hitbox:e.hitbox,placement:t,markerPosition:e.markerPosition}),u=!0;break}}u||s.push({annotation:e.annotation,measuredWidth:n.width,measuredHeight:n.height,dataPoint:e.dataPoint,hitbox:e.hitbox,placement:"top",markerPosition:e.markerPosition})}return s})({measureReactContent:y,sortedAnnotations:(e=>{let{annotations:t,hitboxes:n,getDataPointId:r}=e,i=n.flatMap(e=>{let{dataPoints:t}=e;return t}).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{}),o=n.map(e=>e.dataPoints.reduce((t,n)=>Object.assign(Object.assign({},t),{[n.id]:e}),{})).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return[...t].reduce((e,t)=>{let n=r(t),l=i[n],a=o[n];if(!l||!a)return e;let s=x8(l);return[...e,{annotation:t,dataPoint:l,hitbox:a,markerPosition:s}]},[]).sort((e,t)=>e.markerPosition.x>t.markerPosition.x?1:e.markerPosition.xt.markerPosition.y?1:-1)})({annotations:i.filter(O8),hitboxes:c,getDataPointId:o}),plotWidth:f,plotHeight:m,formatAlphaValue:null==(e=u.tooltipOptions)?void 0:e.formatAlphaValue,formatPieValue:null==(t=u.tooltipOptions)?void 0:t.formatPieValue,formatYValue:null==(n=u.tooltipOptions)?void 0:n.formatYValue,flipAxes:s,highlightStyle:a}):[]},[i,s,o,c,l,y,m,f,a,null==(t=u.tooltipOptions)?void 0:t.formatAlphaValue,null==(n=u.tooltipOptions)?void 0:n.formatPieValue,null==(r=u.tooltipOptions)?void 0:r.formatYValue]),{canUserInteractWithAddon:b}=bc();return l?(0,g.jsx)(md,{container:document.getElementById(d),id:"pointAnnotationsAddon",resetFontSize:!1,children:(0,g.jsx)(Th,{style:{transform:"translate(".concat(p,"px, ").concat(h,"px)"),width:f,height:m},children:x.map(e=>{let{annotation:t,placement:n,dataPoint:r}=e;return(0,g.jsx)(Tp,Object.assign({annotation:t,dataPoint:r,placement:n,isInteractive:b("pointAnnotationsAddon"),highlightStyle:a},u),r.id)})})}):null},Tf=e=>({id:"pointAnnotations",render:()=>(0,g.jsx)(Tg,Object.assign({},e))}),Tm=()=>{let e=mr("overPlotPortalId"),t=Pg("labelMaxWidth"),n=Pg("labels");return(0,g.jsx)(md,{container:document.getElementById(e),id:"pieLabelsAddon",zIndex:f6.dataLabels,resetFontSize:!1,children:n.map(e=>{let{x:n,y:r,id:i,formatted:o}=e;return(0,g.jsx)(Pu,{maxWidth:t,style:{position:"absolute",transform:"translate(".concat(n,"px, ").concat(r,"px)")},children:o.rich},i)})})},Ty=e=>Object.values(e).join("__");function Tx(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0,r=yb();return(0,O.useMemo)(()=>{var t,i,o,l,a;let s=null!=(i=null==(t=r.overlayState.activeHitbox)?void 0:t.dataPoints)?i:[];switch(e){case"bar":return null!=(o=s.filter(yv).filter(n))?o:[];case"line":return null!=(l=s.filter(yC).filter(n))?l:[];case"tile":return null!=(a=s.filter(yj).filter(n))?a:[]}},[n,null==(t=r.overlayState.activeHitbox)?void 0:t.dataPoints,e])}let Tb=e=>{let{filter:t,highlightStyle:n,lineThickness:r}=e,i=ma(),o=Tx("line",t),{isFocusedInteraction:l}=bc(),{isPointHighlighted:a,isLineDimmed:s}=yM();return!o.length||l?null:(0,g.jsx)("g",{style:S7(),children:o.map((e,t)=>{let{xPosition:o,yPosition:l,vizColor:u,groupValues:c,yValue:d,observation:p}=e,h="".concat(o,"-").concat(l,"-").concat(c,"-").concat(u,"-").concat(t);return null===d||a(p)?null:(0,g.jsx)(S5,{mainPosition:o,crossPosition:l,size:TC(r),fill:i.values.grey100,strokeWidth:2,stroke:xa({theme:i,color:u,isDimmed:s(p),highlightStyle:n}),"aria-label":"Hover Marker"},h)})})},TC=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2.5;return Math.max(3,3*e)},Tv=()=>{let{values:e}=ma(),{flipAxes:t}=SM(),n=x$("plotWidth"),r=x$("plotHeight"),[i]=Tx("line"),{isFocusedInteraction:o}=bc();if(!i||o)return null;let a=i[t?"yPosition":"xPosition"];return(0,g.jsx)(Pn,{ruleStyle:"dashed",orientation:t?l.X:l.Y,origin:0,end:t?n:r,crossOrigin:a,stroke:e.hoverGuideLineColor})},Tj=(0,O.memo)(e=>{let{vizType:t,clipPath:n,observations:r,plotEffect:i,lineThickness:o,lineGenerator:l,areaGenerator:a,showAreas:s,backgroundColor:u,showPoints:c}=e,{getColor:d,getLineType:p}=xY(),{flipAxes:h}=SM(),{isLineDimmed:f}=yM(),[m]=r,y=f(m),x=d(m);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S9,{clipPath:n,observations:r,lineGenerator:l,color:x,isDimmed:y,backgroundColor:u,lineType:p(m),effect:i,role:"graphics-symbol img","aria-roledescription":"line","aria-label":"Line",lineThickness:o,showPoints:c}),s&&(0,g.jsx)(Pr,{clipPath:n,isDimmed:y,observations:r,areaGenerator:a,backgroundColor:u,color:x,flipAxes:h,variant:"areaStacked"===t?"solid":"gradient"})]})}),TA=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"catmull-rom";switch(e){case"linear":return $.A;case"catmull-rom":return ee.A}},Tw=(e,t,n)=>{let r=e[t];return null!==e[n]&&void 0!==r},Tk=e=>{let{x:t,y:n,getXPosition:r,xBandwidth:i,getYPosition:o,curveType:l,flipAxes:a}=e,s=e=>r(e)+(null!=i?i:0)/2,u=e=>o(e);return(0,et.A)().x(a?u:s).y(a?s:u).defined(e=>Tw(e,t,n)).curve(TA(l))},TS=e=>"line-plot-slide-animation-".concat(e),TP=e=>{let{plotId:t}=e,{flipAxes:n}=SM(),r=x$("plotWidth"),i=x$("plotHeight");return(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:TS(t),children:(0,g.jsx)(ep.P.rect,{x:-20,y:-20,width:r- -40,height:i- -40,initial:{[n?"scaleY":"scaleX"]:0,[n?"originY":"originX"]:0},animate:{[n?"scaleY":"scaleX"]:1},transition:f_})})})},TL=(0,O.memo)(e=>{let{vizType:t,x:n,y:r,group:i=[],curveType:o,plotEffect:l,highlightStyle:a,backgroundColor:s,lineThickness:u,treatEmptyValues:c,showPoints:d}=e,p=(0,O.useId)(),{getXPosition:h,xBandwidth:f,getYPosition:m,getLowerYPosition:y,flipAxes:x}=SM(),{isSeriesHighlighted:b}=yM(),{visibleObservations:C}=Pl(),v=(()=>{let e=x$("plotHeight"),t=x$("plotWidth"),{xBandwidth:n,xStep:r,xBandOuterPadding:i}=SM(),o=(0,O.useMemo)(()=>null===n||null===r||null===i?-20:r*i+n/2+-20,[i,n,r]),l="line_clip_".concat((0,O.useId)());return(0,O.useMemo)(()=>({id:l,url:"url(#".concat(l,")"),props:{x:o,y:-20,width:t-2*o,height:e- -40}}),[l,e,t,o])})(),{partitionsMap:j,partitionKeys:A}=(0,O.useMemo)(()=>yW({observations:C,group:i}),[C,i]),w=(0,O.useMemo)(()=>Tk({x:n,y:r,getXPosition:h,xBandwidth:f,getYPosition:m,curveType:o,flipAxes:x}),[o,x,h,m,n,f,r]),k=(0,O.useMemo)(()=>(e=>{let{x:t,y:n,getXPosition:r,xBandwidth:i,getYPosition:o,getLowerYPosition:l,curveType:a,flipAxes:s}=e,u=e=>r(e)+(null!=i?i:0)/2,c=e=>o(e),d=e=>l(e);return(s?(0,en.A)().x1(c).x0(d).y(u):(0,en.A)().x(u).y0(d).y1(c)).defined(e=>Tw(e,t,n)).curve(TA(a))})({x:n,y:r,getXPosition:h,xBandwidth:f,getYPosition:m,getLowerYPosition:y,curveType:o,flipAxes:x}),[n,r,h,f,m,y,o,x]),S=xi({partitionKeys:A,partitionsMap:j,isSeriesHighlighted:b}),P="areaStacked"===t||1===A.length;return(0,g.jsxs)(O.Fragment,{children:[(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:v.id,children:(0,g.jsx)("rect",Object.assign({},v.props))})}),(0,g.jsx)(TP,{plotId:p}),(0,g.jsx)(Tv,{}),(0,g.jsx)(ef.N,{children:(0,g.jsx)("g",{clipPath:"url(#".concat(TS(p),")"),children:S.map(e=>{let n=j.get(e);return!function(e){return!!(e&&e.length>0)}(n)?null:(0,g.jsx)(Tj,{vizType:t,clipPath:v.url,showAreas:P,observations:n,lineGenerator:w,areaGenerator:k,plotEffect:l,backgroundColor:s,lineThickness:u,showPoints:d},e)})})}),(0,g.jsx)(Tb,{highlightStyle:a,lineThickness:u})]},c)}),TM=e=>{let{x:t,y:n,yValue:r,group:i,cluster:o,relatedX:l,getDataPointId:a,curveType:s}=e,{getColor:u,getLineType:c}=xY(),{flipAxes:d,getXPosition:p,xBandwidth:h,getYPosition:g,getSecondaryYPosition:f}=SM(),m=(0,O.useCallback)(e=>{let{observation:y,previousObservation:x,seriesObservations:b,getDataPointXPosition:C,getDataPointYPosition:v,isSecondaryAxis:j}=e,A=y[t],w=y[r],k=l?y[l]:void 0,S=a(y),P=yG({observation:y,group:i}),L=C(y),M=v(y),O=u(y),T=c(y);return{type:"line",id:S,xValue:A,yValue:w,percentage:null,relatedXValue:k,xPosition:d?M:L,yPosition:d?L:M,groupValues:P,clusterValues:y_(o)?yX({observation:y,cluster:o}):null,vizColor:O,lineType:T,observation:y,flipAxes:d,previousDataPoint:x?m({observation:x,getDataPointXPosition:C,getDataPointYPosition:v}):void 0,generateLinePath:()=>Tk({x:t,y:n,getXPosition:p,xBandwidth:h,getYPosition:j?f:g,curveType:s,flipAxes:d})(null!=b?b:[])}},[o,s,d,u,a,c,g,f,p,i,l,t,h,n,r]);return m},TO=e=>{let{yOrigin:t,bandwidth:n,filter:r,flipAxes:i}=e,o=ma(),l=x$("plotWidth"),a=x$("plotHeight"),{highlightStyle:s}=yM(),u=Tx("bar",r),{innerDimensions:c,outerDimensions:d}=(0,O.useMemo)(()=>TD({plotWidth:l,plotHeight:a,dataPoints:u,yOrigin:t,bandwidth:n,flipAxes:i}),[n,u,i,a,l,t]),p="".concat((0,O.useId)(),"-stroke-mask"),{isFocusedInteraction:h}=bc(),{getLegendSymbolFill:f}=Sp();return!u.length||h?null:(0,g.jsxs)("g",{children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("mask",{id:p,children:[(0,g.jsx)("rect",Object.assign({fill:"white"},d)),(0,g.jsx)("rect",Object.assign({fill:"black"},c))]})}),(0,g.jsx)("rect",Object.assign({},d,{fill:TT({theme:o,dataPoints:u,getLegendSymbolFill:f,highlightStyle:s}),fillOpacity:.15,mask:"url(#".concat(p,")")}))]})},TT=e=>{let{theme:t,dataPoints:n,getLegendSymbolFill:r,highlightStyle:i}=e;return n?[...new Set(n.map(e=>{let{vizColor:t}=e;return t}))].length>1?t.values.stackedBarHoverBorderColor:n[0]?r(n[0],i):t.values.stackedBarHoverBorderColor:t.values.stackedBarHoverBorderColor},TD=e=>{var t,n,r,i,o,l,a,s;let{plotWidth:u,plotHeight:c,dataPoints:d,yOrigin:p,bandwidth:h,flipAxes:g}=e,f=e=>{let{yPosition:t,yValue:n}=e;return null===n?p:t},m=null!=(n=null==(t=(0,A.A)(d,"x0"))?void 0:t.x0)?n:0,y=null!=(i=null==(r=(0,w.A)(d,"x1"))?void 0:r.x1)?i:u,x=null!=(l=null==(o=(0,A.A)(d,f))?void 0:o.y0)?l:0,b=null!=(s=null==(a=(0,w.A)(d,f))?void 0:a.y1)?s:c,C=g?m:x,v=g?x:m,j=xt(h),k={[g?"y":"x"]:v,[g?"x":"y"]:C,[g?"height":"width"]:(g?b:y)-v,[g?"width":"height"]:Math.abs(C-(g?y:b)),rx:j};return{innerDimensions:k,outerDimensions:{x:k.x-6,y:k.y-6,width:k.width+12,height:k.height+12,rx:j+3}}},TI=e=>{let{yBaseline:t,barCount:n,flipAxes:r}=e;return{containerVariants:{hidden:{},show:{transition:{staggerChildren:.4/n}}},itemVariants:{hidden:{[r?"originX":"originY"]:"0%",[r?"scaleX":"scaleY"]:1e-4,[r?"translateX":"translateY"]:t},show:{[r?"scaleX":"scaleY"]:1,[r?"translateX":"translateY"]:0,transition:fQ}}}},TE=e=>{let{yBaseline:t,barCount:n,flipAxes:r,children:i}=e,{containerVariants:o}=(0,O.useMemo)(()=>TI({yBaseline:t,barCount:n,flipAxes:r}),[n,r,t]);return(0,g.jsx)(ep.P.g,{variants:o,initial:"hidden",animate:"show",transition:f_,children:i})},TH=e=>{let t=Math.ceil(e.length/10);return(0,P.A)(e,t)},TV=e=>{let{yBaseline:t,barCount:n,flipAxes:r,children:i}=e,{itemVariants:o}=(0,O.useMemo)(()=>TI({yBaseline:t,barCount:n,flipAxes:r}),[n,r,t]);return(0,g.jsx)(ep.P.g,{variants:o,children:i})},TF=e=>{let{observations:t,xBandwidth:n,yOrigin:r,getXPosition:i,getYPosition:o,getColor:l,flipAxes:a}=e,s=(0,O.useMemo)(()=>t.reduce((e,l,s)=>{let u=i(l),c=o(l),d=(e,t)=>a?"".concat(t,",").concat(e):"".concat(e,",").concat(t),p="".concat(d(u,c)," ").concat(d(u+n,c));return 0===s?"".concat(d(u,r)," ").concat(p):s===t.length-1?e+" ".concat(p," ").concat(d(u+n,r)):e+" ".concat(p)},""),[a,i,o,t,n,r]);return t[0]?(0,g.jsx)("polygon",{points:s,fill:l(t[0]),fillOpacity:.2}):null},TB=(0,O.memo)(e=>{let{x:t,group:n=[],shouldShowDropoff:r,plotEffect:i,backgroundColor:o}=e,l=(0,O.useId)(),{getColor:a,getAlpha:s,getFillType:u}=xY(),{getXPosition:c,xBandwidth:d,getYPosition:p,yOrigin:h,flipAxes:f}=SM(),{visibleObservations:m}=Pl(),{isBarDimmed:y}=yM(),{partitionsMap:x,partitionKeys:b}=(0,O.useMemo)(()=>yW({observations:m,group:n}),[n,m]),{getBarGroupXPosition:C,barGroupXBandwidth:v}=(0,O.useMemo)(()=>xF({barGroupKeys:b,xBandwidth:null!=d?d:0}),[b,d]),A=(0,O.useMemo)(()=>b.flatMap(e=>{var t;return null!=(t=x.get(e))?t:[]}),[b,x]),w=(0,O.useMemo)(()=>{let e=b.flatMap((e,n)=>{var r;return(null!=(r=x.get(e))?r:[]).map(r=>{let i=c(r)+C(e),l=p(r),d=a(r),m=u(r),x=s(r),b=y(r);return{itemKey:"".concat(String(r[t]),"-").concat(String(e),"-").concat(n,"}"),xPosition:i,geom:(0,g.jsx)(Sq,{flipAxes:f,bandwidth:v,position:i,end:l,start:null!=h?h:0,fill:d,fillType:m,opacity:x,isDimmed:b,backgroundColor:o})}})});return TH((0,j.A)(e,["xPosition"],["asc"]))},[o,v,f,s,C,a,u,c,p,y,b,x,t,h]);return(0,g.jsxs)(g.Fragment,{children:[r&&(0,g.jsx)(TF,{observations:A,xBandwidth:null!=v?v:0,yOrigin:null!=h?h:0,getXPosition:c,getYPosition:p,getColor:a,flipAxes:f}),"neon"===i&&w.flat().length<=100&&(0,g.jsx)(S1,{shapeId:l,blur:7,opacity:.75}),(0,g.jsx)("g",{id:l,children:(0,g.jsx)(TE,{yBaseline:null!=h?h:0,barCount:w.length,flipAxes:f,children:w.map((e,t)=>(0,g.jsx)(TV,{yBaseline:null!=h?h:0,barCount:w.length,flipAxes:f,children:e.map((e,t)=>{let{geom:n,itemKey:r}=e;return(0,g.jsx)(O.Fragment,{children:n},"".concat(r,"-").concat(t))})},t))})}),(0,g.jsx)(TO,{yOrigin:null!=h?h:0,bandwidth:v,flipAxes:f})]})}),Tz=(e,t)=>yp(t)&&["barStacked","columnStacked","barStackedFill","columnStackedFill","mekko"].includes(e),TR=e=>{let{observation:t,group:n}=e;return n[1]?yg(t[n[1].variableKey]):null},TY=e=>{var t;let{zippedStack:n,x:r,yScale:i,group:o}=e,l=n.filter(Boolean),a=(e=>t=>"ticks"in e?e((0,ea.A)(t,e=>(null==e?void 0:e.yLowerValue)||0)||0):0)(i)(l),s=(e=>t=>"ticks"in e?e((0,el.A)(t,e=>(null==e?void 0:e.yUpperValue)||0)||0):0)(i)(l),u=null==(t=l[0])?void 0:t.observation;return{stack:l,stackBottomEdge:a,stackTopEdge:s,stackHeight:a-s,xValue:u[r],groupValues:yG({observation:u,group:o}),firstObservation:u}},TG=e=>{let{xPosition:t,bandwidth:n,stack:r,y:i,yScale:o,flipAxes:l}=e,{values:a}=ma(),s=(0,eg.K)();if(!("ticks"in o)||r.length>20)return null;let u=(e=>{let{stack:t,y:n}=e;return(0,j.A)(t,["yLowerValue",e=>{let{observation:t}=e,r=t[n];return null===r?0:fr(r)}],["desc","desc"])})({stack:r,y:i});return(0,g.jsx)(g.Fragment,{children:u.map((e,r)=>{var i;let{yLowerValue:c}=e;if(r===u.length-1)return null;let d=o(c),p=null==(i=u[r+1])?void 0:i.yLowerValue;return void 0!==p&&3>Math.abs(d-o(p))?null:(0,g.jsx)(ep.P.line,{initial:!1,animate:{[l?"y1":"x1"]:t,[l?"x1":"y1"]:d,[l?"y2":"x2"]:t+n,[l?"x2":"y2"]:d},transition:s?{duration:0}:f_,strokeWidth:1,stroke:a.grey100},r)})})},TW=(0,O.memo)(e=>{let{vizType:t,x:n,y:r,group:i,secondaryAxisLineKey:o=null,plotEffect:l,backgroundColor:a}=e,s=(0,O.useId)(),u=(0,O.useId)(),{getColor:c,getAlpha:d,getFillType:p}=xY(),{getXPosition:h,xBandwidth:f,yScale:m,yOrigin:y,flipAxes:x}=SM(),{visibleObservations:b}=Pl(),{isBarDimmed:C}=yM(),{zippedStackedData:v,barGroupKeys:j}=(0,O.useMemo)(()=>{let e=yF({vizType:t,observations:b,x:n,y:r,group:i,skip:e=>e===o});return Object.assign(Object.assign({},e),{zippedStackedData:yY(e)})},[b,i,t,o,n,r]),{getBarGroupXPosition:A,barGroupXBandwidth:w}=(0,O.useMemo)(()=>xF({barGroupKeys:j,xBandwidth:null!=f?f:0}),[j,f]),k=(0,O.useMemo)(()=>{if(!("ticks"in m))return[];let e=[];for(let[t,o]of v.entries()){let{stackBottomEdge:l,stackTopEdge:u,firstObservation:f,stack:y}=TY({zippedStack:o,x:n,yScale:m,group:i}),b=TR({observation:f,group:i}),v=A(b),j="".concat(s,"-clip-path-").concat(b,"-").concat(t);e.push({geom:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:j,children:(0,g.jsx)(Sq,{flipAxes:x,bandwidth:w,position:h(f)+v,start:l,end:u,backgroundColor:a})})}),(0,g.jsx)("g",{clipPath:"url(#".concat(j,")"),children:y.map((e,t)=>{if(!e)return null;let{observation:n,yUpperValue:i,yLowerValue:o}=e;if(null===n[r])return null;let l=h(n)+v,s=c(n),u=p(n),f=d(n),y=C(n);return(0,g.jsx)(Sq,{flipAxes:x,bandwidth:w,position:l,end:m(i),start:m(o),fill:s,fillType:u,opacity:f,roundCorners:!1,isDimmed:y,backgroundColor:a},t)})}),(0,g.jsx)(TG,{xPosition:h(f)+v,bandwidth:w,stack:y,y:r,yScale:m,flipAxes:x})]})})}return TH(e)},[a,w,x,d,A,c,p,h,i,C,s,n,r,m,v]);return(0,g.jsxs)(g.Fragment,{children:["neon"===l&&v.flat().length<=100&&(0,g.jsx)(S1,{shapeId:u,blur:7,opacity:.75}),(0,g.jsx)("g",{id:u,children:(0,g.jsx)(TE,{yBaseline:null!=y?y:0,barCount:v.length,flipAxes:x,children:k.map((e,t)=>(0,g.jsx)(TV,{yBaseline:null!=y?y:0,barCount:v.length,flipAxes:x,children:e.map((e,n)=>{let{geom:r}=e;return(0,g.jsx)(O.Fragment,{children:r},"".concat(t,"-").concat(n))})},t))})}),(0,g.jsx)(TO,{yOrigin:null!=y?y:0,bandwidth:w,flipAxes:x})]})}),TU=(0,O.memo)(e=>{var{vizType:t,group:n}=e,r=s$(e,["vizType","group"]);let{flipAxes:i}=SM();return(0,g.jsxs)(O.Fragment,{children:[(0,g.jsx)(SQ,{}),Tz(t,n)?(0,g.jsx)(TW,Object.assign({},r,{vizType:t,group:n})):(0,g.jsx)(TB,Object.assign({},r,{vizType:t,group:n}))]},String(i))}),TN=e=>{let{data:t,x:n,y:r,group:i,cluster:o,relatedX:l,getDataPointId:a,percentageValueStrategy:s="divide-by-total"}=e,{getColor:u,getAlpha:c,getFillType:d}=xY(),{yScale:p,flipAxes:h}=SM(),g=(0,O.useCallback)(e=>{var f;let{observation:m,previousObservation:y,getDataPointXPosition:x,getDataPointYPosition:b,getX0Position:C,getX1Position:v,getY0Position:j,getY1Position:A,getStackValues:w,stackType:k}=e,S=m[n],P=m[r],L=null!=(f=w(m))?f:t.getValues(r),M="ticks"in p&&d1(t.getType(r))?y2({strategy:s,values:L,absoluteValue:P}):null,O=l?m[l]:void 0,T=a(m),D=yG({observation:m,group:i}),I=x(m),E=b(m),H=u(m),V=d(m),F=c(m),B=y_(o)?yX({observation:m,cluster:o}):null,z=y?g({observation:y,getDataPointXPosition:x,getDataPointYPosition:b,getX0Position:C,getX1Position:v,getY0Position:j,getY1Position:A,getStackValues:w,stackType:k}):void 0,R=C(m),Y=v(m),G=j(m),W=A(m);return Object.assign({type:"bar",stackType:k,id:T,xValue:S,yValue:P,percentage:M,relatedXValue:O,groupValues:D,clusterValues:B,vizColor:H,fillOpacity:F,fillType:V,previousDataPoint:z,flipAxes:h,observation:m},h?{xPosition:E,yPosition:I,x0:W,y0:R,x1:G,y1:Y}:{xPosition:I,yPosition:E,x0:R,y0:G,x1:Y,y1:W})},[n,r,t,p,s,l,a,i,u,d,c,o,h]);return g},TK=(0,O.memo)(e=>{let{partitionsMap:t,barGroupKeys:n,plotEffect:r,backgroundColor:i}=e,o=(0,O.useId)(),{getColor:l,getAlpha:a,getFillType:s}=xY(),{getXPosition:u,xBandwidth:c,getYPosition:d,yOrigin:p,flipAxes:h}=SM(),{isBarDimmed:f}=yM(),{getBarGroupXPosition:m,barGroupXBandwidth:y}=(0,O.useMemo)(()=>xF({barGroupKeys:n,xBandwidth:null!=c?c:0}),[n,c]),x=(0,O.useMemo)(()=>{let e=n.flatMap(e=>{var n;return(null!=(n=t.get(e))?n:[]).map(t=>{let n=u(t)+m(e),r=d(t),o=l(t),c=s(t),x=a(t),b=f(t);return{itemKey:"".concat(e,"-").concat(n,"-").concat(o,"}"),xPosition:n,geom:(0,g.jsx)(Sq,{flipAxes:h,bandwidth:y,position:n,end:r,start:null!=p?p:0,fill:o,fillType:c,opacity:x,isDimmed:b,backgroundColor:i})}})});return TH((0,j.A)(e,["xPosition"],["asc"]))},[n,y,h,a,m,l,s,u,d,f,t,p,i]);return(0,g.jsxs)(g.Fragment,{children:["neon"===r&&x.flat().length<=100&&(0,g.jsx)(S1,{shapeId:o,blur:7,opacity:.75}),(0,g.jsx)("g",{id:o,children:(0,g.jsx)(TE,{yBaseline:null!=p?p:0,barCount:x.length,flipAxes:h,children:x.map((e,t)=>(0,g.jsx)(TV,{yBaseline:null!=p?p:0,barCount:x.length,flipAxes:h,children:e.map((e,t)=>{let{geom:n,itemKey:r}=e;return(0,g.jsx)(O.Fragment,{children:n},"".concat(r,"-").concat(t))})},t))})}),(0,g.jsx)(TO,{yOrigin:null!=p?p:0,bandwidth:y,filter:e=>((e,t)=>void 0===e.groupValues[0]||null===e.groupValues[0]||t.includes(yg(e.groupValues[0])))(e,n),flipAxes:h})]})}),TZ=(0,O.memo)(e=>{let{observations:t,yAxisScale:n,plotEffect:r,backgroundColor:i,lineThickness:o,lineGenerator:l,showPoints:a}=e,{getColor:s,getLineType:u}=xY(),{isLineDimmed:c}=yM(),[d]=t,p=c(d),h=s(d);return(0,g.jsx)(S9,{observations:t,lineGenerator:l,color:h,lineType:u(d),effect:r,lineThickness:o,yAxisScale:n,backgroundColor:i,isDimmed:p,showPoints:a,role:"graphics-symbol img","aria-roledescription":"line","aria-label":"Line"})}),TX=(0,O.memo)(e=>{let{partitionsMap:t,partitionKeys:n,yAxisScale:r,curveType:i,plotEffect:o,highlightStyle:l,backgroundColor:a,lineThickness:s,showPoints:u,x:c,y:d}=e,p=(0,O.useId)(),{getXPosition:h,xBandwidth:f,getYPosition:m,getSecondaryYPosition:y,flipAxes:x}=SM(),{isSeriesHighlighted:b}=yM(),C="primary"===r?m:y,v=(0,O.useMemo)(()=>Tk({x:c,y:d,getXPosition:h,xBandwidth:f,getYPosition:C,curveType:i,flipAxes:x}),[i,x,h,C,c,f,d]),j=xi({partitionKeys:n,partitionsMap:t,isSeriesHighlighted:b});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(TP,{plotId:p}),"primary"===r&&(0,g.jsx)(Tv,{}),(0,g.jsx)("g",{clipPath:"url(#".concat(TS(p),")"),children:j.map(e=>{let n=t.get(e);return!function(e){return!!(e&&e.length>0)}(n)?null:(0,g.jsx)(TZ,{observations:n,yAxisScale:r,plotEffect:o,backgroundColor:a,lineThickness:s,lineGenerator:v,showPoints:u},e)})}),(0,g.jsx)(Tb,{highlightStyle:l,lineThickness:s})]})}),T_=e=>{let{x:t,y:n,group:r,secondaryAxisLineKey:i,plotEffect:o,backgroundColor:l}=e;return(0,g.jsx)(TW,{vizType:"columnStacked",x:t,y:n,group:r,secondaryAxisLineKey:i,plotEffect:o,backgroundColor:l})},TQ=(0,O.memo)(e=>{let{data:t,curveType:n="catmull-rom",plotEffect:r,x:i,y:o,group:l=[],highlightStyle:a,backgroundColor:s,lineThickness:u,comboPlotAxisCount:c,showPoints:d}=e,{flipAxes:p}=SM(),{visibleObservations:h}=Pl(),f=gz(e=>e.computedConfig.comboPlotType),m=(0,O.useMemo)(()=>yW({observations:[...t],group:l}),[t,l]),y=(0,O.useMemo)(()=>yW({observations:h,group:l}),[h,l]),{primaryGeomKeys:x,secondaryGeomKey:b}=y$(m.partitionKeys,c),C=(0,O.useMemo)(()=>b?x.filter(e=>y.partitionKeys.includes(e)):y.partitionKeys,[x,b,y.partitionKeys]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(SQ,{}),"grouped-bars"===f&&(0,g.jsx)(TK,{plotEffect:r,partitionsMap:y.partitionsMap,barGroupKeys:C,backgroundColor:s},String(p)),"lines"===f&&(0,g.jsx)(TX,{yAxisScale:"primary",curveType:n,plotEffect:r,highlightStyle:a,backgroundColor:s,lineThickness:u,partitionsMap:y.partitionsMap,partitionKeys:x,showPoints:d,x:i,y:o}),yp(l)&&"stacked-bars"===f&&(0,g.jsx)(T_,{plotEffect:r,backgroundColor:s,x:i,y:o,group:l,secondaryAxisLineKey:b},String(p)),null!==b&&(0,g.jsx)(TX,{yAxisScale:"single"===c?"primary":"secondary",curveType:n,plotEffect:r,highlightStyle:a,backgroundColor:s,lineThickness:u,partitionsMap:y.partitionsMap,partitionKeys:[b],showPoints:d,x:i,y:o})]})}),TJ=e=>{let{observations:t,value:n}=e;return(0,O.useMemo)(()=>(0,er.A)().value(e=>{let t=e[n];return null===t?0:fr(t)}).sort(null)(t),[t,n])},Tq=(0,O.memo)(e=>{let{vizType:t,plotEffect:n,value:r,backgroundColor:i}=e,o=(0,O.useId)(),l="translate(".concat(Pg("pieCenterX")," ").concat(Pg("pieCenterY"),")"),{getColor:a,getFillType:s}=xY(),{isHighlighted:u}=yM(),{visibleObservations:c}=Pl(),d=TJ({observations:c,value:r});return(0,g.jsxs)(O.Fragment,{children:["neon"===n&&d.length<=100&&(0,g.jsx)(S1,{shapeId:o,blur:10,opacity:.75}),(0,g.jsx)("g",{id:o,transform:l,children:d.map((e,n)=>{let r=u(e.data);return(0,g.jsx)(Py,{arc:e,appearance:t,isDimmed:!1===r,fillColor:a(e.data),fillType:s(e.data),backgroundColor:i},n)})}),(0,g.jsx)(SQ,{})]},t)}),T$={type:"spring",bounce:0,duration:.15},T1={type:"spring",bounce:0,duration:.3},T0=O.memo(function(e){let{xPosition:t,yPosition:n,width:r,height:i,fill:o,fillOpacity:l,isHovered:a=!1,flipAxes:s}=e,u=T2({xPosition:t,yPosition:n,width:r,height:i,isHovered:a,flipAxes:s});return u.width<0||u.height<0?null:(0,g.jsx)(ep.P.rect,{initial:!1,animate:Object.assign(Object.assign({},u),{fillOpacity:l}),transition:a?T$:T1,fill:o,rx:8,role:"graphics-symbol img","aria-roledescription":"tile","aria-label":"Tile"})}),T2=e=>{let{xPosition:t,yPosition:n,width:r,height:i,isHovered:o,flipAxes:l}=e,a=.05*(l?r:i),s=.03*(l?i:r),u=.5*a,c=.5*s,d={[l?"y":"x"]:t-r/2+s,[l?"x":"y"]:n-i/2+a,[l?"height":"width"]:r-2*s,[l?"width":"height"]:i-2*a};return o&&(d={x:d.x-c,y:d.y-u,width:d.width+2*c,height:d.height+2*u}),d},T5=e=>{let{observation:t,alpha:n}=e,{values:r}=ma(),{getColor:i,getAlpha:o}=xY(),{getXPosition:l,xBandwidth:a,getYPosition:s,yBandwidth:u,flipAxes:c}=SM(),d=n&&null!==t[n],p=l(t)+(null!=a?a:0)/2,h=s(t)+(null!=u?u:0)/2,f=null!=a?a:0,m=null!=u?u:0,y=d?i(t):r.heatmapEmptyTileBackground,x=d?o(t):1,[b]=Tx("tile"),C=(0,O.useMemo)(()=>void 0!==b&&b.xPosition===p&&b.yPosition===h,[b,p,h]);return(0,g.jsx)(T0,{fill:y,fillOpacity:x,xPosition:p,yPosition:h,width:f,height:m,isHovered:C,flipAxes:c},JSON.stringify(t))},T3=(0,O.memo)(e=>{let{data:t,alpha:n,plotEffect:r}=e,i=(0,O.useId)(),{flipAxes:o}=SM(),l=[...t];return(0,g.jsxs)(g.Fragment,{children:["neon"===r&&l.length<=100&&(0,g.jsx)(S1,{shapeId:i,blur:5,opacity:.75}),(0,g.jsx)(ep.P.g,{id:i,initial:{opacity:0},animate:{opacity:1},transition:f_,children:l.map((e,t)=>(0,g.jsx)(O.Fragment,{children:(0,g.jsx)(T5,{observation:e,alpha:n})},String(t)))},String(o))]})}),T7=(e,t,n)=>{if(![...dh,...dg].includes(e)||!(null==n?void 0:n.length))return!1;let{partitionKeys:r}=yW({observations:[...t],group:n});return 1===r.length},T9=e=>{let{vizType:t,comboPlotType:n,index:r,count:i}=e;switch(t){case"line":case"areaStacked":return"line";case"heatmap":case"mekko":return"tile";case"scatter":case"bubble":return"point";case"combo":return i>=2&&r===i-1||"lines"===n?"line":"bar";case"pie":case"donut":return t;default:return"bar"}},T4=e=>{let{vizType:t,data:n,group:r,comboPlotType:i,formatSeriesLabel:o}=e,{partitionKeys:l}=yW({observations:[...n],group:r});return l.map((e,n)=>({seriesKey:e,formattedLabel:o(ym(e),e).plain,symbol:T9({vizType:t,comboPlotType:i,index:n,count:l.length})}))},T6=e=>{let{vizType:t,data:n,group:r,formatSeriesLabel:i}=e,{partitionKeys:o}=yW({observations:[...n],group:r});return o.map((e,n)=>({seriesKey:e,formattedLabel:i(ym(e),e).plain,symbol:T9({vizType:t,index:n,count:o.length})}))},T8={top:["bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill","combo","line","areaStacked","pie","mekko","scatter"],right:["line","areaStacked","pie","donut","mekko","columnStacked","columnStackedFill"],none:["pie","donut","scatter","bubble"]},De=e=>{let{vizType:t,legendItems:n,isAnyLineHighlighted:r,isAnyStackHighlighted:i,isSingleSeriesBar:o}=e,l=n.length>=3;switch(t){case"waterfall":return"none";case"line":case"areaStacked":return n.length<=1?"none":l||r?"right":"top";case"columnStacked":case"columnStackedFill":return l||i?"right":"top";case"bar":case"barStacked":case"barStackedFill":case"column":return o?"none":"top";case"pie":case"donut":return n.length<=1?"none":"top";default:return"top"}},Dt=e=>{let{vizType:t,legendItems:n,isAnyLineHighlighted:r,isSingleSeriesBar:i}=e;if(r)return[];let o=[];return T8.top.includes(t)&&o.push("top"),T8.right.includes(t)&&o.push("right"),(T8.none.includes(t)||1===n.length)&&o.push("none"),["bar","barStacked","barStackedFill","column","columnStacked","columnStackedFill"].includes(t)&&i&&!o.includes("none")&&o.push("none"),o},Dn=(0,O.createContext)(null),Dr=uE(Dn,"LegendProvider"),Di=e=>{let{data:t,group:n,label:r,formatSeriesLabel:i,customLegendPosition:o,children:l}=e,{_setLegendItems:a,_setDefaultLegendPosition:s,_setAvailableLegendPositions:u}=SD(),c=gz(e=>e.computedConfig.comboPlotType),{isAnyLineHighlighted:d,isAnyStackHighlighted:p}=yM(),h=gz(e=>e.computedConfig),f=(0,O.useMemo)(()=>T7(h.type,t,n),[h.type,t,n]),m=[...dh,...dg,"line","areaStacked","combo"].includes(h.type)?h:void 0,y=(0,O.useMemo)(()=>(e=>{let{vizType:t,comboPlotType:n,data:r,group:i=[],label:o,formatSeriesLabel:l=ug,xAxisProperties:a}=e;return"funnel"===t?T4({vizType:t,data:r,group:i,comboPlotType:n,formatSeriesLabel:l}):[...dh,...dg].includes(t)?(e=>{var t,n;let{vizType:r,data:i,group:o,formatSeriesLabel:l,xAxisProperties:a}=e,s=null==(n=null==(t=null==a?void 0:a[0])?void 0:t.dataType)?void 0:n.type;return s&&(dq(s)||d1(s))?T6({vizType:r,data:i,group:o,formatSeriesLabel:l}):T7(r,i,o)?(e=>{var t;let{vizType:n,data:r,formatSeriesLabel:i,xAxisProperties:o}=e,l=null==(t=null==o?void 0:o[0])?void 0:t.key;if(!l)return[];let a=new Set;for(let e of r){let t=e[l];t&&c5(t)&&("string"==typeof t||"number"==typeof t||"boolean"==typeof t)&&a.add(t)}let s=[...a];return s.map((e,t)=>({seriesKey:yg(e),formattedLabel:i(String(e),yg(e)).plain,symbol:T9({vizType:n,index:t,count:s.length})}))})({vizType:r,data:i,formatSeriesLabel:l,xAxisProperties:a}):T6({vizType:r,data:i,group:o,formatSeriesLabel:l})})({vizType:t,data:r,group:i,formatSeriesLabel:l,xAxisProperties:a}):["line","areaStacked","scatter","mekko","bubble","combo"].includes(t)?T4({vizType:t,data:r,group:i,comboPlotType:n,formatSeriesLabel:l}):dm.includes(t)?(e=>{let{vizType:t,data:n,label:r,formatSeriesLabel:i}=e;if(!r)return[];let o=[...n].map(e=>e[r]).filter(e=>null!==e).map(fn).map(e=>({seriesKey:null,formattedLabel:i(e,yg(e)).plain}));return o.map((e,n)=>Object.assign(Object.assign({},e),{symbol:T9({vizType:t,index:n,count:o.length})}))})({vizType:t,data:r,label:o,formatSeriesLabel:l}):[]})({vizType:h.type,comboPlotType:c,label:r,formatSeriesLabel:i,xAxisProperties:null==m?void 0:m.xAxisProperties,data:t,group:n}),[h.type,c,r,i,null==m?void 0:m.xAxisProperties,t,n]),x=(0,O.useMemo)(()=>(e=>{let{vizType:t,customLegendPosition:n,legendItems:r,isAnyLineHighlighted:i,isAnyStackHighlighted:o,isSingleSeriesBar:l}=e,a=Dt({vizType:t,legendItems:r,isAnyLineHighlighted:i,isSingleSeriesBar:l});return n&&a.includes(n)?n:De({vizType:t,legendItems:r,isAnyLineHighlighted:i,isAnyStackHighlighted:o,isSingleSeriesBar:l})})({vizType:h.type,customLegendPosition:o,legendItems:y,isAnyLineHighlighted:d,isAnyStackHighlighted:p,isSingleSeriesBar:f}),[h.type,o,y,d,p,f]);(0,O.useEffect)(()=>{a(y)},[a,y]),(0,O.useEffect)(()=>{s(De({vizType:h.type,legendItems:y,isAnyLineHighlighted:d,isAnyStackHighlighted:p,isSingleSeriesBar:f}))},[s,h.type,d,p,y,f]),(0,O.useEffect)(()=>{u(Dt({vizType:h.type,legendItems:y,isAnyLineHighlighted:d,isSingleSeriesBar:f}))},[h.type,d,y,u,f]);let b=(0,O.useMemo)(()=>({legendPosition:x}),[x]);return(0,g.jsx)(Dn.Provider,{value:b,children:l})},Do=e=>{let{y:t,series:n,getYPosition:r}=e;if(!t)return null;for(let e of[...n].reverse())if(null!==e[t])return r(e);return null},Dl=(0,O.createContext)(null),Da=uE(Dl,"SeriesLabelsProvider"),Ds=e=>{let{data:t,x:n,y:r,group:i,formatLabel:o,children:l}=e,a=gz(e=>e.computedConfig.type),{legendPosition:s}=Dr(),{getColor:u}=xY(),{yScale:c,getYPosition:d,yStackScale:p}=SM(),{isSeriesHighlighted:h,isLineDimmed:f,isGroupHighlighted:m,isAnyLineHighlighted:y}=yM(),x=(0,O.useMemo)(()=>({seriesLabels:(e=>{let{vizType:t,data:n,x:r,y:i,yScale:o,yStackScale:l,group:a,formatLabel:s=ug,isLineHighlighted:u,isLineDimmed:c,isAnyLineHighlighted:d,isGroupHighlighted:p,getYPosition:h,getColor:g,legendPosition:f}=e;return["line","areaStacked"].includes(t)&&"right"===f?(e=>{let{data:t,y:n,group:r,formatLabel:i=ug,isLineHighlighted:o,isLineDimmed:l,getYPosition:a,getColor:s,isAnyLineHighlighted:u}=e,c=[],{partitionKeys:d,partitionsMap:p}=yW({observations:[...t],group:r});for(let{series:e,seriesKey:t}of d.reduce((e,t)=>{let n=p.get(t);if(!n||0===n.length)return e;let r=n[0];return r&&(o(r)||d.length<=10||!u)&&e.push({series:n,seriesKey:t}),e},[])){let r=e.at(-1),o=Do({y:n,series:e,getYPosition:a});r&&null!==o&&c.push({seriesKey:t,position:o,label:i(ym(t),t),color:s(r),isDimmed:l(r)})}return c})({data:n,y:i,group:a,formatLabel:s,isLineHighlighted:u,isLineDimmed:c,getYPosition:h,getColor:g,isAnyLineHighlighted:d}):["mekko","barStacked","columnStacked","barStackedFill","columnStackedFill"].includes(t)&&"right"===f?(e=>{let{vizType:t,data:n,x:r,y:i,yScale:o,group:l,formatLabel:a=ug,getColor:s,isGroupHighlighted:u}=e;if(!(r&&i&&yp(l)&&"ticks"in o))return[];let c=[],{stackedData:d}=yF({vizType:t,observations:[...n],x:r,y:i,group:l});for(let e of d)for(let t of[...e].reverse()){if(!t)continue;let{seriesKey:e,yLowerValue:n,yUpperValue:r,observation:i}=t;if(n===r)continue;let l=o((n+r)/2);c.push({seriesKey:e,position:l,label:a(ym(e),e),color:s(i),isDimmed:!1===u(i)});break}return c})({vizType:t,data:n,x:r,y:i,yScale:"mekko"===t?l:o,group:a,formatLabel:s,getColor:g,isGroupHighlighted:p}):[]})({vizType:a,data:t,x:n,y:r,yScale:c,yStackScale:p,group:i,formatLabel:o,isLineHighlighted:h,isLineDimmed:f,isGroupHighlighted:m,getYPosition:d,getColor:u,legendPosition:s,isAnyLineHighlighted:y})}),[a,t,n,r,c,p,i,o,h,f,m,d,u,s,y]);return(0,g.jsx)(Dl.Provider,{value:x,children:l})},Du=e=>{let{labelPosition:t,plotEdgePosition:n,color:r}=e,i=mr("isPlotMeasured"),o=Dc(-4,n-t,9,0),l=yQ(o,f_),a={fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"2 2"};return i?(0,g.jsx)(ep.P.path,Object.assign({d:l},a)):(0,g.jsx)("path",Object.assign({d:o},a,{strokeOpacity:0}))},Dc=(e,t,n,r)=>"M ".concat(e,",").concat(t," C ").concat((e+n)/2,",").concat(t," ").concat((e+n)/2,",").concat(r," ").concat(n,",").concat(r),Dd=h.I4.text(lO(),sh),Dp=()=>{let e=mr("isPlotMeasured"),t=mr("chartWidth"),n=x$("plotHeight"),r=mr("textScale"),{seriesLabels:i}=Da(),{repelledLabels:o,hasOverlappingLabels:l}=(0,O.useMemo)(()=>(e=>{let{seriesLabels:t,plotHeight:n,textScale:r}=e,i=[...t].sort((e,t)=>e.position-t.position).map(e=>Object.assign(Object.assign({},e),{plotEdgePosition:e.position})),o=!1,l=!0,a=0;for(;l;){l=!1,a++;for(let e=0;eu){l=!0,o=!0;let e=(s-u)/2+1;t.position-=e,a.position+=e,t.position<0&&(t.position=0),a.position>n&&(a.position=n)}}if(a>100)break}return{repelledLabels:i.filter(e=>e.position>=0&&e.position<=n),hasOverlappingLabels:o}})({seriesLabels:i,plotHeight:n,textScale:r}),[i,n,r]),a=ma(),s=yV();return(0,g.jsx)(g.Fragment,{children:o.map(n=>{let{seriesKey:r,position:i,plotEdgePosition:o,label:u,color:c,isDimmed:d}=n,p=d?a.values.dimmedSeriesLabelTextColor:c,h=d?a.values.dimmedSeriesLabelLineColor:c,f=l?(0,g.jsx)(Du,{labelPosition:i,plotEdgePosition:o,color:h}):null,m=xo({measureReactContent:s,text:u.plain,maxWidth:t/4,wrapper:Dd}),y=(0,g.jsxs)(Dd,{x:11*!!l,y:0,fill:p,textAnchor:"start",dominantBaseline:"middle",opacity:+!!e,children:[(0,g.jsx)("title",{children:u.plain}),m]});return e?(0,g.jsxs)(ep.P.g,{initial:{x:0,y:i,opacity:0},animate:{x:0,y:i,opacity:1},transition:f_,children:[f,y]},r):(0,g.jsxs)(O.Fragment,{children:[f,y]},r)})})},Dh=e=>{let{observations:t,backgroundColor:n,highlightStyle:r,pointSize:i}=e,o=ma(),{getColor:l}=xY(),{getYPosition:a,getXPosition:s,xBandwidth:u}=SM(),{isPointDimmed:c}=yM(),[d]=t,p=(0,O.useMemo)(()=>{let e=l(d),t=xa({theme:o,color:e,isDimmed:!1,highlightStyle:r,backgroundColor:n}),i=xa({theme:o,color:e,isDimmed:!0,highlightStyle:r,backgroundColor:n});return{defaultFill:t,defaultStroke:uP(o.values.grey0,t,.6),dimmedFill:i,dimmedStroke:uP(o.values.grey0,i,.6)}},[d,l,o,r,n]),h=u?u/2:0;return(0,g.jsx)("g",{children:t.map((e,t)=>{let r=c(e);return(0,g.jsx)(S5,{fill:r?p.dimmedFill:p.defaultFill,stroke:r?p.dimmedStroke:p.defaultStroke,crossPosition:a(e),mainPosition:s(e)+h,size:i,backgroundColor:n,includeOuterBorder:!0},t)})})},Dg=e=>{let{group:t,plotEffect:n,backgroundColor:r,highlightStyle:i,pointSize:o}=e,l=(0,O.useId)(),a=x$("plotWidth"),s=x$("plotHeight"),{visibleObservations:u}=Pl(),{partitionsMap:c,partitionKeys:d}=(0,O.useMemo)(()=>yW({observations:u,group:t}),[u,t]),p="number"==typeof o?o:(e=>{let{plotWidth:t,plotHeight:n,totalPoints:r}=e;return r<=0?2:2*Math.max(1,Math.min(Math.sqrt(t*n*.02/r/Math.PI),4))})({plotWidth:a,plotHeight:s,totalPoints:u.length});return(0,g.jsxs)(g.Fragment,{children:["neon"===n&&(0,g.jsx)(S1,{shapeId:l,blur:5,opacity:.75}),(0,g.jsx)("g",{id:l,children:d.map(e=>{let t=c.get(e)||[];return dK(t)?(0,g.jsx)(Dh,{observations:t,backgroundColor:r,highlightStyle:i,pointSize:p},e):null})})]})},Df=e=>{let{observations:t,backgroundColor:n,highlightStyle:r}=e,i=ma(),{getColor:o}=xY(),{getYPosition:l,getXPosition:a,getSize:s,xBandwidth:u}=SM(),{computeBubbleSize:c}=Px(),{isPointDimmed:d}=yM(),[p]=t,h=(0,O.useMemo)(()=>{let e=o(p),t=xa({theme:i,color:e,isDimmed:!1,highlightStyle:r,backgroundColor:n}),l=xa({theme:i,color:e,isDimmed:!0,highlightStyle:r,backgroundColor:n});return{defaultFill:t,defaultStroke:uP(i.values.grey0,t,.6),dimmedFill:l,dimmedStroke:uP(i.values.grey0,l,.6)}},[p,o,i,r,n]),f=u?u/2:0;return(0,g.jsx)("g",{children:t.map((e,t)=>{let r=d(e),i=s(e);return(0,g.jsx)(S5,{strokeWidth:1.5,fill:r?h.dimmedFill:h.defaultFill,stroke:r?h.dimmedStroke:h.defaultStroke,size:c(i),opacity:.5,crossPosition:l(e),mainPosition:a(e)+f,backgroundColor:n},t)})})},Dm=e=>{let{group:t,plotEffect:n,backgroundColor:r,highlightStyle:i}=e,o=(0,O.useId)(),{visibleObservations:l}=Pl(),{partitionsMap:a,partitionKeys:s}=(0,O.useMemo)(()=>yW({observations:l,group:t}),[l,t]);return(0,g.jsxs)(g.Fragment,{children:["neon"===n&&(0,g.jsx)(S1,{shapeId:o,blur:5,opacity:.75}),(0,g.jsx)("g",{id:o,children:s.map(e=>{let t=a.get(e)||[];return dK(t)?(0,g.jsx)(Df,{observations:t,backgroundColor:r,highlightStyle:i},e):null})})]})},Dy=(0,O.memo)(e=>{let{x:t,plotEffect:n,backgroundColor:r}=e,i=(0,O.useId)(),{values:o}=ma(),{getColor:a,getFillType:s}=xY(),{getXPosition:u,xBandwidth:c,yOrigin:d,getYStartPosition:p,getYEndPosition:h,xStep:f}=SM(),{visibleObservations:m}=Pl(),{isBarDimmed:y}=yM(),x=(null!=f?f:0)-(null!=c?c:0),b=(0,O.useMemo)(()=>TH(m.map((e,n)=>{let i=u(e),d=p(e),f=h(e),b=a(e),C=s(e),v=y(e),j="".concat(String(e[t]),"-").concat(n),A=n===m.length-1;return{itemKey:j,geom:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Sq,{flipAxes:!1,bandwidth:null!=c?c:0,position:i,start:d,end:f,fill:b,fillType:C,isDimmed:v,backgroundColor:r}),!A&&(0,g.jsx)(Pn,{ruleStyle:"dashed",orientation:l.X,origin:i+(null!=c?c:0),crossOrigin:f,end:i+(null!=c?c:0)+x,stroke:o.targetLineColor})]})}})),[r,x,a,s,u,h,p,y,m,o.targetLineColor,t,c]);return(0,g.jsxs)(g.Fragment,{children:["neon"===n&&b.flat().length<=100&&(0,g.jsx)(S1,{shapeId:i,blur:7,opacity:.75}),(0,g.jsx)("g",{id:i,children:(0,g.jsx)(TE,{yBaseline:null!=d?d:0,barCount:b.length,children:b.map((e,t)=>(0,g.jsx)(TV,{yBaseline:null!=d?d:0,barCount:b.length,children:e.map(e=>{let{geom:t,itemKey:n}=e;return(0,g.jsx)(O.Fragment,{children:t},n)})},t))})}),(0,g.jsx)(TO,{yOrigin:null!=d?d:0,bandwidth:null!=c?c:0}),(0,g.jsx)(SQ,{})]})}),Dx=()=>{let{hitboxes:e}=yb(),{isBarDimmed:t}=yM();return(0,g.jsx)(g.Fragment,{children:e.flatMap(e=>e.dataPoints).map(e=>yv(e)&&e.yValue?(0,g.jsx)(Sq,{roundCorners:4,flipAxes:e.flipAxes,bandwidth:e.x1-e.x0-4,position:e.x0+2,start:e.y0,end:e.y1-4,fill:e.vizColor,isDimmed:t(e.observation)},e.id):null)})},Db=e=>{let{vizType:t,children:n,addons:r=[],data:i,aestheticMappings:o,getDataPointId:l=Ty,percentageValueStrategy:a,curveType:s,options:u}=e,c=gz(e=>e.computedConfig.comboPlotType),d=mr("isPlotMeasured"),{flipAxes:p}=SM(),{x:h,y:f,size:m,yValue:y,group:x,cluster:b,alpha:C,label:v}=o,j={vizType:t,data:i,x:h,y:f,yValue:y,group:x,cluster:b,alpha:C,getDataPointId:l},A=(e=>{let{vizType:t,data:n,x:r,y:i,group:o=[],cluster:l,relatedX:a,getDataPointId:s,percentageValueStrategy:u}=e,{getXPosition:c,xBandwidth:d,yScale:p,getYPosition:h,yOrigin:g}=SM(),{visibleObservations:f}=Pl(),m=Tz(t,o),y=TN({data:n,x:r,y:i,group:o,cluster:l,relatedX:a,getDataPointId:s,percentageValueStrategy:u});return(0,O.useCallback)(()=>{let e,n=[],l=()=>null;if(m){let a=yF({vizType:t,observations:f,x:r,y:i,group:o}),s=yY(a);e=xF({barGroupKeys:a.barGroupKeys,xBandwidth:null!=d?d:0}),n=s.flatMap((e,t)=>e.filter(Boolean).map((e,n)=>{var r,i;let{observation:o,yUpperValue:l,yLowerValue:a}=e;return{observation:xe(o,l,a),previousObservation:null==(i=null==(r=s[t-1])?void 0:r[n])?void 0:i.observation}})),l=y9(r,i,o,s)}else{let{partitions:t,partitionKeys:r}=yW({observations:f,group:o});e=xF({barGroupKeys:r,xBandwidth:null!=d?d:0}),n=t.flatMap(e=>e.map((t,n)=>({observation:t,previousObservation:e[n-1]})))}let{getBarGroupXPosition:a,barGroupXBandwidth:s}=e;return n.map(e=>{let{observation:n,previousObservation:r}=e,u=y7(n[i]),d=m?TR({observation:n,group:o}):yU({observation:n,group:o});return y({observation:n,previousObservation:r,getDataPointXPosition:()=>c(n)+a(d)+s/2,getDataPointYPosition:()=>m&&"ticks"in p?p(n[u?y6:y8]):h(n),getX0Position:()=>c(n)+a(d),getX1Position:()=>c(n)+a(d)+s,getY0Position:()=>"ticks"in p?m?p(n[y6]):u?h(n):null!=g?g:0:0,getY1Position:()=>"ticks"in p?m?p(n[y8]):u?null!=g?g:0:h(n):0,getStackValues:l,stackType:(e=>["barStacked","columnStacked"].includes(e)?"stacked":["barStackedFill","columnStackedFill"].includes(e)?"stacked-fill":"none")(t)})})},[t,m,r,f,i,o,d,y,c,p,h,g])})(Object.assign(Object.assign({},j),{percentageValueStrategy:a})),w=(e=>{let{x:t,y:n,yValue:r,group:i=[],cluster:o,relatedX:l,getDataPointId:a,curveType:s}=e,{getXPosition:u,xBandwidth:c,getYPosition:d}=SM(),{visibleObservations:p}=Pl(),h=TM({x:t,y:n,yValue:r,group:i,cluster:o,relatedX:l,getDataPointId:a,curveType:s});return(0,O.useCallback)(()=>{let{partitions:e}=yW({observations:p,group:i});return e.flatMap(e=>e.map((t,n)=>h({observation:t,previousObservation:e[n-1],seriesObservations:e,getDataPointXPosition:()=>u(t)+(null!=c?c:0)/2,getDataPointYPosition:d})))},[p,h,u,d,i,c])})(Object.assign(Object.assign({},j),{curveType:s})),k=(e=>{let{vizType:t,data:n,x:r,y:i,yValue:o,group:l=[],cluster:a,relatedX:s,getDataPointId:u,curveType:c,comboPlotAxisCount:d}=e,{getXPosition:p,xBandwidth:h,getYPosition:g,getSecondaryYPosition:f,yScale:m,yOrigin:y}=SM(),{visibleObservations:x}=Pl(),b=TN({data:n,x:r,y:i,group:l,cluster:a,relatedX:s,getDataPointId:u}),C=TM({x:r,y:i,yValue:o,group:l,cluster:a,relatedX:s,getDataPointId:u,curveType:c});return(0,O.useCallback)(e=>{let{partitionsMap:n,partitionKeys:o}=yW({observations:x,group:l}),{primaryGeomKeys:a,secondaryGeomKey:s}=y$(o,d),u="stacked-bars"===e,c=(e,t,r)=>[...n.entries()].flatMap(n=>{let[i,o]=n;return e.includes(i)?o.map((e,n)=>C({observation:e,previousObservation:o[n-1],seriesObservations:o,getDataPointXPosition:()=>p(e)+(null!=h?h:0)/2,getDataPointYPosition:t,isSecondaryAxis:r})):[]}),v=s?c([s],"single"===d?g:f,"single"!==d):[];switch(e){case"grouped-bars":case"stacked-bars":return[...(e=>{let o,a=[],c=()=>null;if(u&&yp(l)){let e=yF({vizType:t,observations:x,x:r,y:i,group:l,skip:e=>e===s}),n=yY(e);o=xF({barGroupKeys:e.barGroupKeys,xBandwidth:null!=h?h:0}),a=n.flatMap((e,t)=>e.filter(Boolean).map((e,r)=>{var i,o;let{observation:l,yUpperValue:a,yLowerValue:s}=e;return{observation:xe(l,a,s),previousObservation:null==(o=null==(i=n[t-1])?void 0:i[r])?void 0:o.observation}})),c=y9(r,i,l,n)}else o=xF({barGroupKeys:e,xBandwidth:null!=h?h:0}),n.forEach((t,n)=>{e.includes(n)&&t.forEach((e,n)=>{a.push({observation:e,previousObservation:t[n-1]})})});let{getBarGroupXPosition:d,barGroupXBandwidth:f}=o;return a.map(e=>{let{observation:t,previousObservation:n}=e,r=y7(t[i]),o=u?TR({observation:t,group:l}):yU({observation:t,group:l});return b({observation:t,previousObservation:n,getDataPointXPosition:()=>p(t)+d(o)+f/2,getDataPointYPosition:()=>u&&"ticks"in m?m(t[r?y6:y8]):g(t),getX0Position:()=>p(t)+d(o),getX1Position:()=>p(t)+d(o)+f,getY0Position:()=>"ticks"in m?u?m(t[y6]):r?g(t):null!=y?y:0:0,getY1Position:()=>"ticks"in m?u?m(t[y8]):r?null!=y?y:0:g(t):0,getStackValues:c,stackType:u?"stacked":"none"})})})(a),...v];case"lines":return[...c(a,g,!1),...v]}},[t,x,l,d,r,i,h,b,p,m,g,y,C,f])})(Object.assign(Object.assign({},j),{curveType:s,comboPlotAxisCount:null==u?void 0:u.comboPlotAxisCount})),S=(e=>{let{data:t,x:n,y:r,alpha:i,getDataPointId:o,percentageValueStrategy:l="divide-by-max-value"}=e,{getColor:a,getAlpha:s,alphaValues:u}=xY(),{getXPosition:c,xBandwidth:d,getYPosition:p,yBandwidth:h,flipAxes:g}=SM();return(0,O.useCallback)(()=>[...t].map(e=>{let t=o(e),f=e[n],m=e[r],y=c(e)+(null!=d?d:0)/2,x=p(e)+(null!=h?h:0)/2,b=a(e),C=i?e[i]:null,v=s(e),j=y2({strategy:l,values:u,absoluteValue:C}),A=y-(null!=d?d:0)/2,w=x-(null!=h?h:0)/2,k=y+(null!=d?d:0)/2,S=x+(null!=h?h:0)/2;return Object.assign(Object.assign({type:"tile",id:t,xValue:f,yValue:m,vizColor:b,alphaValue:C,fillOpacity:v,percentage:j,flipAxes:g},g?{xPosition:x,yPosition:y,x0:w,y0:A,x1:S,y1:k}:{xPosition:y,yPosition:x,x0:A,y0:w,x1:k,y1:S}),{clusterValues:[],groupValues:[]})}),[i,u,t,g,s,a,o,c,p,l,n,d,r,h])})(Object.assign(Object.assign({},j),{percentageValueStrategy:a})),P=(e=>{let{x:t,yValue:n,label:r,group:i=[],cluster:o,getDataPointId:l}=e,{getColor:a}=xY(),{getXPosition:s,xBandwidth:u,getYPosition:c}=SM(),{visibleObservations:d}=Pl(),p=y_(o);return(0,O.useCallback)(()=>{let{partitions:e}=yW({observations:d,group:i}),h=u?u/2:0;return e.flatMap(e=>{let u=[];return e.forEach(e=>{u.push({type:"point",id:l(e),xValue:e[t],yValue:e[n],groupValues:yG({observation:e,group:i}),labelValue:r?e[r]:void 0,clusterValues:p?yX({observation:e,cluster:o}):null,vizColor:a(e),xPosition:s(e)+h,yPosition:c(e),observation:e,flipAxes:!1,percentage:null,partitionDataPoints:u})}),u})},[d,i,u,l,t,n,r,p,o,a,s,c])})(Object.assign(Object.assign({},j),{label:v})),L=(e=>{let{x:t,yValue:n,label:r,group:i=[],cluster:o,getDataPointId:l}=e,{getColor:a}=xY(),{getXPosition:s,xBandwidth:u,getYPosition:c,getSize:d}=SM(),{visibleObservations:p}=Pl(),h=y_(o);return(0,O.useCallback)(()=>{let{partitions:e}=yW({observations:p,group:i}),g=u?u/2:0;return e.flatMap(e=>{let u=[];return e.forEach(e=>{u.push({type:"point",id:l(e),xValue:e[t],yValue:e[n],groupValues:yG({observation:e,group:i}),labelValue:r?e[r]:void 0,clusterValues:h?yX({observation:e,cluster:o}):null,vizColor:a(e),xPosition:s(e)+g,yPosition:c(e),sizeValue:d(e),observation:e,flipAxes:!1,percentage:null,partitionDataPoints:u})}),u})},[p,i,u,l,t,n,r,h,o,a,s,c,d])})(Object.assign(Object.assign({},j),{label:v,size:m})),M=(e=>{let{x:t,y:n,getDataPointId:r}=e,{visibleObservations:i}=Pl(),o=(e=>{let{x:t,y:n,getDataPointId:r}=e,{getColor:i,getFillType:o,getAlpha:l}=xY(),{getXPosition:a,xBandwidth:s,getYStartPosition:u,getYEndPosition:c}=SM(),d=(0,O.useCallback)(e=>{let{observation:p,previousObservation:h}=e,g=p[t],f=p[n],m=r(p),y=i(p),x=l(p),b=o(p),C=xO in p?p[xO]:void 0,v=h?d({observation:h}):void 0,j=a(p)+(null!=s?s:0)/2,A=u(p),w=c(p);return{type:"bar",stackType:"none",id:m,xValue:null!=g?g:null,yValue:null!=f?f:null,percentage:null,relatedXValue:null,groupValues:[],clusterValues:null,vizColor:y,fillOpacity:x,fillType:b,previousDataPoint:v,flipAxes:!1,observation:p,xPosition:j,yPosition:(A+w)/2,x0:j-(null!=s?s:0)/2,x1:j+(null!=s?s:0)/2,y0:Math.min(A,w),y1:Math.max(A,w),waterfallType:C}},[l,i,r,o,a,c,u,t,s,n]);return d})({x:t,y:n,getDataPointId:r});return(0,O.useCallback)(()=>i.map((e,t)=>o({observation:e,previousObservation:t>0?i[0]:void 0})),[o,i])})(j),T=(e=>{let{aestheticMappings:t,getDataPointId:n}=e,{getColor:r}=xY(),{flipAxes:i,yStackScale:o,xStackScale:l}=SM(),{visibleObservations:a}=Pl();return(0,O.useCallback)(()=>{let{x:e,y:s,xStackLower:u,xStackUpper:c,yStackLower:d,yStackUpper:p,yStackPercentage:h,group:g}=t;return u&&c&&d&&p?a.map(t=>{var a,f,m,y,x,b,C,v,j,A,w;let k=null!=(f=l(fr(null!=(a=t[u])?a:0)))?f:0,S=null!=(y=l(fr(null!=(m=t[c])?m:0)))?y:0,P=null!=(b=o(fr(null!=(x=t[d])?x:0)))?b:0,L=null!=(v=o(fr(null!=(C=t[p])?C:0)))?v:0,M=yG({observation:t,group:g});return{id:n(t),type:"bar",isMekko:!0,stackType:"stacked-fill",observation:t,xValue:null!=(j=t[e])?j:"",yValue:null!=(A=t[s])?A:"",xPosition:k,yPosition:P,vizColor:r(t),groupValues:M,clusterValues:null,flipAxes:i,percentage:fr(null!=(w=t[h])?w:0),x0:k,x1:S,y0:P,y1:L}}):[]},[t,i,r,n,a,l,o])})({aestheticMappings:o,getDataPointId:j.getDataPointId}),D=(0,O.useMemo)(()=>{if(!d)return[];switch(t){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"funnel":return A();case"line":case"areaStacked":return w();case"scatter":return P();case"bubble":return L();case"combo":return k(c);case"heatmap":return S();case"mekko":return T();case"waterfall":return M();default:return[]}},[A,k,S,w,T,P,M,L,d,t,c]);return(0,g.jsx)(bo,{dataPoints:D,addons:r,flipAxes:p,children:n})},DC=e=>{let{hitboxes:t}=e;return null},Dv=h.I4.rect(lT()),Dj=e=>{let{addons:t}=e,n=mr("isPlotMeasured"),r=x$("plotOffsetX"),i=x$("plotOffsetY"),o=x$("plotWidth"),l=x$("plotHeight"),{hitboxes:a,overlayEventHandlers:s,overlayRef:u}=yb(),c="translate(".concat(r," ").concat(i,")");return n&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Dv,Object.assign({ref:u,role:"widget","aria-label":"Chart interactive overlay",width:o,height:l,transform:c},s)),(0,g.jsxs)("g",{transform:c,children:[t.map(e=>(0,g.jsx)(O.Fragment,{children:e.render()},e.id)),(0,g.jsx)(DC,{hitboxes:a})]})]})},DA=h.I4.text(lD(),sf,uA("textPrimary")),Dw=h.I4.div(lI(),4),Dk=h.I4.div(lE(),e=>{let{$inputAlignment:t}=e;return t},e=>{let{$inputAlignment:t}=e;return t},e=>{let{$isActive:t}=e;return+!!t},sG.subtle),DS=h.I4.div(lH(),sf,uA("grey100"),uA("textPrimary"),sV.sm,sF.xs,hK(1),hK(-1)),DP=h.I4.div(lV()),DL=h.I4.span(lF()),DM=h.I4.input(lB()),DO="Add label",DT=e=>{var{label:t,onChange:n,setEditorContainer:r,labelReference:i,transformString:o,overlayWidth:l,overlayHeight:a,inputAlignment:s}=e,u=s$(e,["label","onChange","setEditorContainer","labelReference","transformString","overlayWidth","overlayHeight","inputAlignment"]);let{draftValue:c,isActive:d,handleOverlayMouseDown:p,handleChange:h,handleKeyPress:f,handleMouseDown:m,focusBindings:y,setInput:x}=(e=>{let{label:t,onChange:n}=e,[r,i]=(0,O.useState)(!1),[o,l]=(0,O.useState)(null),a=(0,O.useCallback)(e=>{o&&!r&&(o.focus(),e.preventDefault())},[o,r]),s=(0,O.useCallback)(e=>{e.stopPropagation()},[]),{draftValue:u,handleChange:c,handleKeyPress:d,focusBindings:p}=g_({value:t,onChange:n,onFocus:()=>i(!0),onBlur:()=>i(!1),onEnterKeyPress:()=>null==o?void 0:o.blur(),changeDebounceWait:0});return{draftValue:u,isActive:r,handleOverlayMouseDown:a,handleChange:c,handleKeyPress:d,handleMouseDown:s,focusBindings:p,setInput:l}})({label:t,onChange:n}),b=(0,O.useMemo)(()=>{var e;return null==(e=null==i?void 0:i.closest("svg"))?void 0:e.parentElement},[i]),C=c||DO;return G.createPortal((0,g.jsx)(Dw,{ref:r,style:{transform:o},children:(0,g.jsx)(Dk,{"aria-label":"Axis label editor area",style:{width:l,height:a},$isActive:d,$inputAlignment:s,onMouseDown:p,children:(0,g.jsx)(DS,{children:(0,g.jsxs)(DP,{style:{maxWidth:l},children:[(0,g.jsx)(DL,{"aria-hidden":!0,children:C}),(0,g.jsx)(DM,Object.assign({ref:x,type:"text",value:c,onChange:h,onKeyPress:f,onMouseDown:m,placeholder:DO},y,u))]})})})}),null!=b?b:document.body)},DD=e=>{let{side:t,label:n,onLabelChange:r}=e,i=(e=>{let t=x$("plotWidth"),n=mr("bottomAxisHeight"),r=mr("rightAxisWidth"),i=mr("textScale");switch(e){case"top":case"bottom":{let r={x:Math.round(t/2),y:"top"===e?-2:n+5};return{label:r,reference:{x:-.5,y:r.y-1,width:t,height:1}}}case"left":case"right":{let t={x:"left"===e?0:r,y:-18.5*i};return{label:t,reference:{x:t.x,y:t.y+10.5*i/2-2,width:1,height:1}}}}})(t),o=(e=>{let t=mr("setTopAxisLabelRef"),n=mr("setRightAxisLabelRef");return{ref:((e,t,n,r,i)=>{switch(e){case"top":return t;case"right":return n;case"bottom":return r;case"left":return i}})(e,t,n,mr("setBottomAxisLabelRef"),mr("setLeftAxisLabelRef")),"aria-label":(e=>{switch(e){case"top":return"Top axis label";case"right":return"Right axis label";case"bottom":return"Bottom axis label";case"left":return"Left axis label"}})(e),textAnchor:(e=>{switch(e){case"top":case"bottom":return"middle";case"right":return"end";case"left":return"start"}})(e),dominantBaseline:(e=>{switch(e){case"top":return"text-after-edge";case"bottom":return"text-before-edge";case"left":case"right":return"hanging"}})(e)}})(t),l=x$("plotWidth"),a=x$("plotHeight"),{truncatedLabel:s,opacity:u}=((e,t)=>{let n=mr("isPlotMeasured"),r=yV();return{truncatedLabel:(0,O.useMemo)(()=>""===e?DO:xo({measureReactContent:r,text:e,maxWidth:t,wrapper:DA}),[e,t,r]),opacity:n?""===e?.5:1:0}})(n,"top"===t||"bottom"===t?l:a),{labelReference:c,setLabelReference:d,setEditorContainer:p,transformString:h}=(e=>{let{x:t,y:n,refs:{setFloating:r,setReference:i,reference:{current:o}}}=(0,eM.we)({placement:(e=>{switch(e){case"top":return"top";case"bottom":return"bottom";case"left":return"right";case"right":return"left"}})(e),whileElementsMounted:(e,t,n)=>(0,eL.ll)(e,t,n,{animationFrame:!0})});return{labelReference:o,setLabelReference:i,setEditorContainer:r,transformString:(0,O.useMemo)(()=>null===t||null===n?"":"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(n),"px, 0)"),[t,n])}})(t),f=(e=>{let t=x$("plotHeight"),n=mr("chartWidth"),{hasSecondaryAxis:r}=SM(),i=mr("textScale");return Object.assign(Object.assign({"aria-label":(e=>{switch(e){case"top":return"Top axis label editor";case"right":return"Right axis label editor";case"bottom":return"Bottom axis label editor";case"left":return"Left axis label editor"}})(e)},((e,t,n,r,i)=>{switch(e){case"top":case"bottom":return{overlayWidth:n,overlayHeight:10.5*i};case"left":case"right":return{overlayWidth:r?t/2:t,overlayHeight:10.5*i}}})(e,n,t,r,i)),{inputAlignment:(e=>{switch(e){case"top":case"bottom":return"center";case"left":return"start";case"right":return"end"}})(e)})})(t),m=mr("textScale"),y=mr("font");return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(DA,Object.assign({},o,i.label,{opacity:u,children:[(0,g.jsx)("title",{children:n}),s]})),r&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("rect",Object.assign({ref:d,fill:"none"},i.reference)),(0,g.jsx)(DT,Object.assign({},f,{label:n,onChange:r,setEditorContainer:p,labelReference:c,transformString:h}),"".concat(m,"_").concat(y))]})]})},DI=e=>{let{axis:t}=e,{flipAxes:n}=SM();return{getAnimationProps:(0,O.useCallback)(function(e){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=t===(n?"y":"x")?"x":"y";return{variants:{initial:{[i]:null!=e?e:0,opacity:0},animate:{[i]:null!=e?e:0,opacity:+!!r},exit:{[i]:null!=e?e:0,opacity:0}},initial:"initial",animate:"animate",exit:"exit",transition:f_}},[t,n]),getNonAnimatedProps:(0,O.useCallback)(e=>({transform:t===(n?"y":"x")?"translate(".concat(e,", 0)"):"translate(0, ".concat(e,")"),opacity:0}),[t,n])}},DE=e=>{let{getAxisPosition:t,tickValues:n,axis:r,axisSide:i}=e,{values:o}=ma(),a=x$("plotHeight"),s=x$("plotWidth"),u=gz(e=>e.computedConfig.type),c=mr("isPlotMeasured"),{origin:d,ruleEnd:p,orientation:h}=(e=>{let t=x$("plotWidth"),n=x$("plotHeight"),r=x$("plotOffsetX"),i=mr("topAxisHeight");switch(e){case"top":return{origin:i,ruleEnd:i+n,orientation:l.Y};case"right":return{origin:-6,ruleEnd:-t-6,orientation:l.X};case"bottom":return{origin:-0,ruleEnd:-n-0,orientation:l.Y};case"left":return{origin:r,ruleEnd:r+t,orientation:l.X}}})(i),{getAnimationProps:f}=DI({axis:r});return c&&"combo"!==u?(0,g.jsx)("g",{children:(0,g.jsx)(ef.N,{custom:t,children:n.map(e=>{let n=t(e),r=DH(e,n,i,s,a);return(0,g.jsx)(ep.P.g,Object.assign({},f(null!=n?n:0,r),{children:(0,g.jsx)(Pn,{ruleStyle:"gridLine",orientation:h,origin:d,crossOrigin:0,end:p,stroke:o.gridLineColor})}),String(e))})})}):null},DH=(e,t,n,r,i)=>{try{if(0===fr(e))return!1}catch(e){}return null!==e&&0!==t&&t!==("top"===n||"bottom"===n?r:i)},DV=e=>{let t,{side:n,children:r}=e,i=mr("setTopAxisRef"),o=mr("setRightAxisRef"),l=mr("setBottomAxisRef"),a=mr("setLeftAxisRef");switch(n){case"bottom":t=l;break;case"top":t=i;break;case"left":t=a;break;case"right":t=o}return(0,g.jsx)("g",{ref:t,"aria-label":"AxisContainer ".concat(n),children:null!=r?r:(0,g.jsx)(DF,{})})},DF=()=>(0,g.jsx)("rect",{width:1,height:1,fill:"none"}),DB=e=>{let{sides:t}=e;return t.map(e=>(0,g.jsx)(DV,{side:e},e))},Dz=h.I4.text(lz(),sg,uA("textSecondary")),DR=e=>{let{label:t,measureReactContent:n,axisSide:r}=e,i=n((0,g.jsx)(Dz,{children:t.rich}));return"left"===r||"right"===r?i.height:i.width},DY=e=>{let{labelSize:t,labelPosition:n,getAxisPosition:r,value:i}=e,o=r(i);return null===o?null:{start:o-=t/2,end:o+t}},DG=e=>{let{tryValues:t,formatLabel:n,axisSize:r,measureReactContent:i,getAxisPosition:o,axisSide:l,iterationCount:a=0}=e,s=t(a);if(!s)return DG(Object.assign(Object.assign({},e),{iterationCount:a+1}));if(!s.length||a>50)return[];let u=[],c=r+20,d=s.map(ym),p=-1/0;for(let t=0;tc||g.start<-20)){if(g.start1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dP.Enum.auto,r="ticks"in e&&t>2?e.ticks(t):e.domain(),i=n===dP.Enum.auto,o=r.length<=2;return i||o?r:e.domain()},DN=[{cadence:"hourly",step:3},{cadence:"hourly",step:6},{cadence:"hourly",step:12},{cadence:"daily",step:1},{cadence:"daily",step:2},{cadence:"weekly",step:1},{cadence:"weekly",step:2},{cadence:"monthly",step:1},{cadence:"monthly",step:2},{cadence:"monthly",step:3},{cadence:"monthly",step:6},{cadence:"yearly",step:1},{cadence:"yearly",step:2},{cadence:"yearly",step:5},{cadence:"yearly",step:10},{cadence:"yearly",step:20},{cadence:"yearly",step:50},{cadence:"yearly",step:100},{cadence:"yearly",step:1e3}];class DK extends Error{}let DZ=(e,t)=>t===dP.Enum.edges?[e[0],e[e.length-1]]:e,DX=e=>{var t,n;let{measureReactContent:r,flipAxes:i,testDates:o,plottedDates:l,getAxisPosition:a,formatLabel:s,plotMainSize:u,leftAxisWidth:c,rightAxisWidth:d,cadence:p,dataTypeCadence:h}=e,f=[],m=null,y=null;for(let[e,l]of o.entries()){let o=ym(l),x=D0(o,null!=p?p:h),b=a(x);if(null===b)continue;let C=s(o,[],e,p),{width:v}=r((0,g.jsx)(Dz,{children:C.rich})),j=DY({labelSize:v,getAxisPosition:a,value:x,labelPosition:"center"});if(!D1({flipAxes:i,axisPosition:b,tickLabelWidth:v,plotMainSize:u,leftAxisWidth:c,rightAxisWidth:d})){if(f.push({value:o,formatted:C,startPosition:null!=(t=null==j?void 0:j.start)?t:0,endPosition:null!=(n=null==j?void 0:j.end)?n:0}),DJ({axisPosition:b,prevAxisPosition:m,tickLabelWidth:v,prevTickLabelWidth:y}))throw new DK;m=b,y=v}}if(p&&!Dq(o,l))throw new DK;return f},D_=(e,t)=>{var n;let r=e.domain(),i=r[0],o=r[r.length-1],{cadence:l,step:a}=t;if(DQ({cadence:l,step:a,start:i,stop:o}))return[];let s="quarterly"===l?3*a:a,u=(e=>{switch(e){case"hourly":return e0.A;case"daily":return e2.A;case"weekly":return e5.rt;case"monthly":case"quarterly":return e3.A;case"yearly":return e7.A}})(l),c=u.range(i,o,s);if(0===c.length)return[];let d=null==(n=u.every(s))?void 0:n.floor(o);return d&&o.valueOf()===d.valueOf()?[...c,o]:c},DQ=e=>{let{cadence:t,step:n,start:r,stop:i}=e,o=(0,I.c)(i,r);switch(t){case"hourly":return 24*o/n>40;case"daily":return o/n>40;case"weekly":return o/(7*n)>40;case"monthly":return o/(30*n)>40;case"quarterly":return o/(90*n)>40;case"yearly":return o/(365*n)>40}},DJ=e=>{let{axisPosition:t,prevAxisPosition:n,tickLabelWidth:r,prevTickLabelWidth:i}=e;return null!==n&&null!==i&&t-r/2-(n+i/2)<10},Dq=(e,t)=>{let n=0;for(let[r,i]of e.entries()){let o=ym(i);if(null===o)continue;let l=e[r+1]?ym(e[r+1]):void 0;for(let e of t)D$(ym(e),o,l)&&n++}return e.length>0&&n/e.length>=2},D$=(e,t,n)=>{if(null===e)return!1;let r=fi(e).getTime(),i=fi(t).getTime(),o=void 0!==n&&c5(n)?fi(n).getTime():1/0;return r>=i&&r<=o},D1=e=>{let{flipAxes:t,axisPosition:n,tickLabelWidth:r,plotMainSize:i,leftAxisWidth:o,rightAxisWidth:l}=e,a=Math.max(o,12),s=Math.max(l,12);return!t&&(n-r/2<-a-20||n+r/2>i+s+20)},D0=(e,t)=>{if(!t||!["monthly"].includes(t.cadence)||null===e)return e;let n=fi(e),r=n.getMonth();return n.setMonth(0),n.setDate(1),n.setDate(30.4375*r),n},D2=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ug,n=mr("waterfallTotalLabel");return(0,O.useMemo)(()=>"waterfall"===e?(e,r,i)=>i===r.length-1?{plain:n,rich:n}:t(e,r,i):t,[e,t,n])},D5=e=>{let{xPosition:t,yPosition:n,formattedTickValue:r,textAnchor:i,dominantBaseline:o,isRotated:l,numTicks:a}=e,{xStep:s,isTimeseriesBarAxis:u,flipAxes:c}=SM(),d=mr("chartWidth"),p=mr("chartHeight"),h=x$("plotWidth"),f=yV(),m=(0,O.useMemo)(()=>l?xo({measureReactContent:f,text:r.plain,maxWidth:.3*p,wrapper:Dz}):null===s||u?r.plain:xo({measureReactContent:f,text:r.plain,maxWidth:c?.3*d:h/a-5,wrapper:Dz}),[p,d,c,r.plain,l,u,f,a,h,s]),y=(0,g.jsxs)(Dz,{x:t,y:n,textAnchor:i,dominantBaseline:o,children:[(0,g.jsx)("title",Object.assign({},l?{"data-testid":"rotated"}:{},{children:r.plain})),m]});return l?(0,g.jsx)("g",{style:{transformOrigin:"".concat(t,"px ").concat(n,"px"),transform:"rotate(-90deg)"},children:y}):y},D3=e=>{let{tick:t,isRotated:n,side:r,numTicks:i}=e,{values:o}=ma(),{xPosition:a,yPosition:s,lineOrigin:u,lineEnd:c,textAnchor:d,dominantBaseline:p}=(e=>{let{side:t,isRotated:n}=e,r=x$("plotOffsetX"),i=x$("plotOffsetY"),[o,l]=(e=>{let{textScale:t,side:n,plotOffsetX:r,plotOffsetY:i}=e;switch(n){case"top":return[0,i-9-2-13.5*t];case"right":return[9,0];case"bottom":return[0,11];case"left":return[r-9-2-6,0]}})({textScale:mr("textScale"),side:t,plotOffsetX:r,plotOffsetY:i}),[a,s]=(e=>{let t,{side:n,plotOffsetX:r,plotOffsetY:i}=e;switch(n){case"top":t=i-9-11-5;break;case"right":case"bottom":t=0;break;case"left":t=r-9-6}return[t,t+9]})({side:t,plotOffsetX:r,plotOffsetY:i});return{xPosition:o,yPosition:l,lineOrigin:a,lineEnd:s,textAnchor:((e,t)=>"left"===e?"end":"right"===e||"top"===e&&t?"start":t?"end":"start")(t,n),dominantBaseline:"top"===t?"alphabetic":"text-before-edge"}})({side:r,isRotated:n});return null===t.startPosition||void 0===t.startPosition||null===t.endPosition||void 0===t.endPosition?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Pn,{ruleStyle:"tickLine",orientation:"top"===r||"bottom"===r?l.Y:l.X,origin:u,end:c,crossOrigin:(t.endPosition-t.startPosition)/2,stroke:o.gridLineColor}),(0,g.jsx)(D5,{xPosition:a,yPosition:s,formattedTickValue:t.formatted,textAnchor:d,dominantBaseline:p,isRotated:n,numTicks:i})]})},D7=e=>{let{side:t,ticks:n,shouldRotate:r,shouldHideTicks:i}=e,o=mr("isPlotMeasured"),{getXAxisPosition:l,getTimeseriesBarAxisPosition:a,isTimeseriesBarAxis:s}=SM(),{getAnimationProps:u,getNonAnimatedProps:c}=DI({axis:"x"}),d=(null!=n?n:[]).filter(e=>{if(null==e)return!1;let{startPosition:t,endPosition:n}=e;return Number.isFinite(t)&&Number.isFinite(n)});return i||0===d.length?(0,g.jsx)(DV,{side:t}):(0,g.jsx)(DV,{side:t,children:o?(0,g.jsx)(ef.N,{custom:s?a:l,children:d.map((e,n)=>{var i,o;return(0,g.jsx)(ep.P.g,Object.assign({},u(null!=(i=e.startPosition)?i:0),{children:(0,g.jsx)(D3,{tick:e,isRotated:r,side:t,numTicks:d.length})}),String(null!=(o=e.value)?o:n))})}):d.map((e,n)=>{var i,o;return(0,g.jsx)("g",Object.assign({},c(null!=(i=e.startPosition)?i:0),{children:(0,g.jsx)(D3,{tick:e,isRotated:r,side:t,numTicks:d.length})}),String(null!=(o=e.value)?o:n))})})},D9=e=>{let{vizType:t,comboPlotType:n,label:r,onLabelChange:i,formatLabel:o=ug,side:l="bottom"}=e,{getXAxisPosition:s,getTimeseriesBarAxisPosition:u,isTimeseriesBarAxis:c,xType:d,options:p}=SM(),h=c?u:s,{ticks:f,shouldRotate:m,shouldHideTicks:y}=(e=>{let{formatLabel:t,options:n,getAxisPosition:r,axisSide:i}=e,o=yV(),{isTimeseriesBarAxis:l,flipAxes:s,xType:u,xScale:c,xStep:d}=SM(),p=gz(e=>e.computedConfig.xAxisLabelsMode),h=gz(e=>e.computedConfig.type),g=gz(e=>e.computedConfig.comboPlotType),f=x$("plotWidth"),m=x$("plotHeight"),y=s?m:f,x=D2(h,t),b=(e=>{let{formatLabel:t,getAxisPosition:n,measureReactContent:r,xType:i}=e,{xScale:o,xValues:l,timeseriesBarScale:a,flipAxes:s}=SM(),u=mr("leftAxisWidth"),c=mr("rightAxisWidth"),d=(e=>{switch(e){case gA.Year:return{cadence:"yearly",step:1};case gA.Quarter:return{cadence:"quarterly",step:1};case gA.MonthYear:case gA.Month:return{cadence:"monthly",step:1};case gA.WeeklyDateRange:case gA.WeeklyDateRangeWithYear:return{cadence:"weekly",step:1};default:return}})(i);return(0,O.useCallback)(e=>{let{plotMainSize:i,labelsMode:p}=e;try{return DX({measureReactContent:r,flipAxes:s,testDates:DZ(((e,t)=>"ticks"in e?[...new Set(t.filter(c5))]:e.domain().map(ym).filter(c5).map(yg))(o,l),p),plottedDates:l,getAxisPosition:n,formatLabel:t,plotMainSize:i,leftAxisWidth:u,rightAxisWidth:c,dataTypeCadence:d})}catch(e){if(!(e instanceof DK))throw e}for(let e of DN)try{return DX({measureReactContent:r,flipAxes:s,testDates:DZ(D_(a,e),p),plottedDates:l,getAxisPosition:n,formatLabel:t,plotMainSize:i,leftAxisWidth:u,rightAxisWidth:c,cadence:e})}catch(e){if(e instanceof DK)continue}return[]},[d,s,t,n,u,r,c,a,o,l])})({formatLabel:x,getAxisPosition:r,measureReactContent:o,xType:u}),C=(e=>{let{formatLabel:t,getAxisPosition:n,measureReactContent:r}=e,{xValues:i}=SM();return(0,O.useCallback)(e=>{let{plotMainSize:o,labelsMode:l,axisSide:a}=e,s=DG({formatLabel:t,tryValues:((e,t)=>n=>{let r=Math.floor(t/10),i=Math.ceil(e.length/r);return((e,t)=>{let n=[],r=Math.ceil(e.length/t);for(let i=0;i{let{formatLabel:t,getAxisPosition:n,measureReactContent:r}=e,{xScale:i}=SM();return(0,O.useCallback)(e=>{let{plotMainSize:o,labelsMode:l,axisSide:a}=e,s=DG({formatLabel:t,tryValues:((e,t)=>n=>{var r,i;let o=null!=(r=e[0])?r:1/0,l=null!=(i=e.at(-1))?i:-1/0,a=DW[n];a||(a=Math.pow(10,4+n-DW.length));let{start:s,count:u}=((e,t,n)=>{let r=Math.floor(e/n)*n,i=Math.ceil(t/n)*n;return{start:r,end:i,count:Math.floor((i-r)/n)}})(o,l,a);return u>t/10?null:Array.from({length:u+1},(e,t)=>s+t*(null!=a?a:0))})(i.domain().map(ym),o),getAxisPosition:n,measureReactContent:r,axisSize:o,axisSide:a});return l===dP.Enum.edges?[s[0],s[s.length-1]]:s},[t,n,i,r])})({formatLabel:x,getAxisPosition:r,measureReactContent:o}),j=(e=>{let{formatLabel:t,measureReactContent:n}=e,{hitboxes:r}=yb(),{xValues:i}=SM();return(0,O.useCallback)(e=>{let{axisSide:o}=e,l=[];return r.forEach((e,r)=>{let[a]=e.dataPoints;if(!a||!yv(a))return;let s=t(a.xValue,i,r),u=DR({label:s,measureReactContent:n,axisSide:o}),c=a.x1-a.x0;if(c-10>=10){let e=(c-u)/2;l.push({formatted:s,value:a.xValue,startPosition:a.x0+e,endPosition:a.x0+c-e})}}),l},[t,r,n,i])})({formatLabel:x,measureReactContent:o}),A=(e=>{let{formatLabel:t,measureReactContent:n,getAxisPosition:r}=e;return(0,O.useCallback)(e=>{let{xScale:i,plotWidth:o,xAxisLabelsMode:l,axisSide:a,supportsLabelRotation:s,xStep:u}=e,c=!1,d=DU(i,(e=>{let{plotWidth:t,xTickLabelWidth:n}=e;return t/n-5})({plotWidth:o,xTickLabelWidth:140}),l),p=d.map(ym),h=Math.max(0,(o+40)/d.length-10),g=d.map((e,i)=>{var o,l;let s=t(p[i],p,i),u=DR({label:s,measureReactContent:n,axisSide:a}),c=DY({labelSize:Math.min(u,h),value:e,getAxisPosition:r,labelPosition:"center"});return{value:e,formatted:s,labelSize:u,startPosition:null!=(o=null==c?void 0:c.start)?o:0,endPosition:null!=(l=null==c?void 0:c.end)?l:0}});return s&&null!==u&&u<50&&(c=g.some(e=>e.labelSize>u)),c&&(g=g.map(e=>{var t,i;let o=DY({labelSize:DR({label:e.formatted,measureReactContent:n,axisSide:(e=>{switch(e){case"top":return"right";case"bottom":return"left";case"left":return"top";case"right":return"bottom"}})(a)}),value:e.value,getAxisPosition:r,labelPosition:"center"});return Object.assign(Object.assign({},e),{startPosition:null!=(t=null==o?void 0:o.start)?t:0,endPosition:null!=(i=null==o?void 0:o.end)?i:0})})),{ticks:g,shouldRotate:c}},[t,r,n])})({formatLabel:x,measureReactContent:o,getAxisPosition:r});return(0,O.useMemo)(()=>{var e;if(!(null==(e=null==c?void 0:c.domain())?void 0:e.some(e=>null!==e))||0===y)return{ticks:[],shouldRotate:!1,shouldHideTicks:!0};switch(xd({xType:u,isTimeseriesBarAxis:l,vizType:h,comboPlotType:g})){case a.Mekko:return{ticks:j({axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Timeseries:return{ticks:b({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Dynamic:return{ticks:C({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};case a.Continuous:return{ticks:v({plotMainSize:y,labelsMode:p,axisSide:i}),shouldRotate:!1,shouldHideTicks:!1};default:{let{ticks:e,shouldRotate:t}=A({xScale:c,plotWidth:f,xAxisLabelsMode:p,axisSide:i,supportsLabelRotation:!!(!s&&(null==n?void 0:n.supportsRotatedTicks)),xStep:d});return{ticks:e,shouldRotate:t,shouldHideTicks:0===e.length||null!==d&&!l&&d<10}}}},[u,l,h,g,j,i,C,y,p,v,b,s,null==n?void 0:n.supportsRotatedTicks,A,c,f,d])})({formatLabel:o,options:p,getAxisPosition:h,axisSide:l}),x=0===f.length||!!(null==p?void 0:p.hideMainAxis);return(0,g.jsxs)(g.Fragment,{children:[D4(t,n,p)&&(0,g.jsx)(DE,{getAxisPosition:h,tickValues:f.map(e=>null==e?void 0:e.value),axis:"x",axisSide:l}),(0,g.jsxs)("g",{role:"graphics-object group","aria-roledescription":"top"===l?"top axis":"bottom axis",children:[x?(0,g.jsx)(DB,{sides:[l]}):(0,g.jsx)(D7,{side:l,ticks:f,shouldRotate:m,shouldHideTicks:y},"".concat(d,"-").concat(t)),D6(r,p)&&(0,g.jsx)(DD,{label:r,onLabelChange:i,side:l})]})]})},D4=(e,t,n)=>!!(null==n?void 0:n.withVerticalGridLines)&&("lines"===t||![...dh,...dg,"combo"].includes(e)),D6=(e,t)=>void 0!==e&&!(null==t?void 0:t.hideMainAxis),D8=e=>{let{formattedTickValue:t,side:n}=e,r=mr("leftAxisWidth");return(0,g.jsx)(Dz,Object.assign({},Ie(n,r),{textAnchor:It(n),dominantBaseline:In(n),children:t.rich}))},Ie=(e,t)=>{switch(e){case"top":case"bottom":case"right":return{x:0,y:0};case"left":return{x:t,y:0}}},It=e=>{switch(e){case"top":case"bottom":return"middle";case"left":return"end";case"right":return"start"}},In=e=>"top"===e||"bottom"===e?"text-before-edge":"central",Ir=e=>{let{side:t,getYAxisPosition:n,formatLabel:r=ug,tickValues:i}=e,o=mr("isPlotMeasured"),{getAnimationProps:l,getNonAnimatedProps:a}=DI({axis:"y"});return(0,g.jsx)(DV,{side:t,children:o?(0,g.jsx)(ef.N,{custom:n,children:i.map((e,o)=>{var a;return(0,g.jsx)(ep.P.g,Object.assign({},l(null!=(a=n(e))?a:0),{children:(0,g.jsx)(D8,{formattedTickValue:r(ym(e),i.map(ym),o),side:t})}),String(e))})}):(0,g.jsx)(g.Fragment,{children:i.map((e,n)=>(0,g.jsx)("g",Object.assign({},a(e),{children:(0,g.jsx)(D8,{formattedTickValue:r(ym(e),i.map(ym),n),side:t})}),"".concat(String(e),"-").concat(n)))})})},Ii=e=>{let{formatLabel:t,label:n,onLabelChange:r,side:i="right",scale:o="primary"}=e,{flipAxes:l,getYAxisPosition:a,getSecondaryYAxisPosition:s,options:u}=SM(),{seriesLabels:c}=Da(),d=(e=>{let{flipAxes:t,scale:n,yAxisLabelsMode:r,options:i}=e,{yScale:o,secondaryYScale:l}=SM(),a=x$("plotWidth"),s=x$("plotHeight"),u=t?a:s,c=null==i?void 0:i.useLogScale,d="secondary"===n?l:o;return(0,O.useMemo)(()=>DU(d,(e=>{let{plotMainSize:t,yTickLabelHeight:n,useLogScale:r}=e;return r?Math.min(t/(6*n),4):t/(6*n)})({plotMainSize:u,yTickLabelHeight:12,useLogScale:c}),r),[u,d,c,r])})({flipAxes:l,scale:o,options:u,yAxisLabelsMode:gz(e=>e.computedConfig.yAxisLabelsMode)});if("secondary"===o&&c.length>0)return(0,g.jsx)(DV,{side:i,children:(0,g.jsx)(Dp,{})});if(Io(d,o,u))return(0,g.jsx)(DB,{sides:[i]});let p="secondary"===o?s:a;return(0,g.jsxs)(g.Fragment,{children:[(null==u?void 0:u.withHorizontalGridLines)&&(0,g.jsx)(DE,{getAxisPosition:p,tickValues:d,axis:"y",axisSide:i}),(0,g.jsxs)("g",{role:"graphics-object group","aria-roledescription":"left"===i?"left axis":"right axis",children:[(0,g.jsx)(Ir,{side:i,getYAxisPosition:p,formatLabel:t,tickValues:d}),Il(n,u)&&(0,g.jsx)(DD,{label:n,onLabelChange:r,side:i})]})]})},Io=(e,t,n)=>0===e.length||1===e.length&&0===e[0]||(null==n?void 0:n.hideCrossAxis)||"secondary"===t&&"single"===(null==n?void 0:n.comboPlotAxisCount),Il=(e,t)=>void 0!==e&&!(null==t?void 0:t.hideCrossAxis),Ia=(e,t)=>"translate(".concat(e," ").concat(t,")"),Is=e=>{let{side:t,children:n}=e,r=((e,t,n,r,i,o,l,a)=>{switch(e){case"top":return Ia(t,n-0-a);case"right":return Ia(t+r+6*(l>1),n);case"bottom":return Ia(t,n+0+i);case"left":return Ia(t-6*(o>1)-o,n)}})(t,x$("plotOffsetX"),x$("plotOffsetY"),x$("plotWidth"),x$("plotHeight"),mr("leftAxisWidth"),mr("rightAxisWidth"),mr("topAxisHeight"));return(0,g.jsx)("g",{transform:r,children:n})},Iu=e=>{let{topLabel:t,formatTopLabel:n=ug,onTopLabelChange:r,rightLabel:i,formatRightLabel:o=ug,onRightLabelChange:l,bottomLabel:a,formatBottomLabel:s=ug,onBottomLabelChange:u,leftLabel:c,formatLeftLabel:d=ug,onLeftLabelChange:p,reverseCrossAxisPosition:h}=e,{flipAxes:f}=SM(),{seriesLabels:m}=Da(),y=gz(e=>e.computedConfig.comboPlotType),x=gz(e=>e.computedConfig.type),{legendPosition:b}=Dr(),C={vizType:x,comboPlotType:y,label:t,formatLabel:n,onLabelChange:r},v={vizType:x,comboPlotType:y,label:i,formatLabel:o,onLabelChange:l},j={vizType:x,comboPlotType:y,label:a,formatLabel:s,onLabelChange:u},A={vizType:x,comboPlotType:y,label:c,formatLabel:d,onLabelChange:p},w=m.length>0,k=h&&"right"!==b;return(0,g.jsxs)(g.Fragment,f?{children:[(0,g.jsx)(Is,{side:k?"bottom":"top",children:(0,g.jsx)(Ii,Object.assign({side:k?"bottom":"top",scale:"heatmap"===x||"combo"===x?"primary":"secondary"},"combo"===x?v:A))}),"heatmap"===x?(0,g.jsx)(Is,{side:"right",children:(0,g.jsx)(D9,Object.assign({side:"right"},C))}):(0,g.jsx)(DB,{sides:["right"]}),(0,g.jsx)(Is,{side:k?"top":"bottom",children:(0,g.jsx)(Ii,Object.assign({side:k?"top":"bottom",scale:"heatmap"===x||"combo"===x?"secondary":"primary"},"combo"===x?A:v))}),"heatmap"===x?(0,g.jsx)(DB,{sides:["left"]}):(0,g.jsx)(Is,{side:"left",children:(0,g.jsx)(D9,Object.assign({side:"left"},j))})]}:{children:["heatmap"===x?(0,g.jsx)(Is,{side:"top",children:(0,g.jsx)(D9,Object.assign({side:"top"},C))}):(0,g.jsx)(DB,{sides:["top"]}),(0,g.jsx)(Is,{side:k?"left":"right",children:(0,g.jsx)(Ii,Object.assign({side:k?"left":"right",scale:"heatmap"===x||"combo"===x||w?"secondary":"primary"},"combo"===x||w?A:v))}),"heatmap"===x?(0,g.jsx)(DB,{sides:["bottom"]}):(0,g.jsx)(Is,{side:"bottom",children:(0,g.jsx)(D9,Object.assign({side:"bottom"},j))}),(0,g.jsx)(Is,{side:k?"right":"left",children:(0,g.jsx)(Ii,Object.assign({side:k?"right":"left",scale:"heatmap"===x||"combo"===x||w?"primary":"secondary"},"combo"===x||w?v:A))})]})},Ic=e=>{let{axis:t,flipAxes:n,getAxisPosition:r}=e,i=t===(n?"y":"x")?l.Y:l.X,{values:o}=ma(),a=mr("isPlotMeasured"),s=x$("plotWidth"),u=x$("plotHeight"),{getAnimationProps:c}=DI({axis:t});if(!a)return null;let d=r(0);return(0,g.jsx)(ep.P.g,Object.assign({},c(null!=d?d:0),{children:(0,g.jsx)(Pn,{orientation:i,origin:t===(n?"x":"y")?s:u,crossOrigin:0,end:0,stroke:o.originLineColor})}))},Id=()=>{let{getXAxisPosition:e,getTimeseriesBarAxisPosition:t,isTimeseriesBarAxis:n,hasPositiveAndNegativeXValues:r,getYAxisPosition:i,hasPositiveAndNegativeYValues:o,flipAxes:l=!1}=SM(),a=n?t:e;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ef.N,{custom:a,children:r&&(0,g.jsx)(Ic,{axis:"x",flipAxes:l,getAxisPosition:a})},"x-".concat(String(l))),(0,g.jsx)(ef.N,{custom:i,children:o&&(0,g.jsx)(Ic,{axis:"y",flipAxes:l,getAxisPosition:i})},"y-".concat(String(l)))]})},Ip=e=>{let{flipAxes:t,textScale:n=1,font:r,waterfallTotalLabel:i="Total",children:o}=e,l=(0,O.useId)(),a=(0,O.useId)(),{height:s,width:u,setElement:c}=g6(),{height:d,setElement:p}=g6(),{height:h,setElement:f}=g6(),{width:m,setElement:y}=g6(),{width:x,setElement:b}=g6(),[C,v]=(0,O.useState)(null),[j,A]=(0,O.useState)(null),[w,k]=(0,O.useState)(null),[S,P]=(0,O.useState)(null),[L,M]=(0,O.useState)(0),T="number"==typeof n?n:Number.parseFloat(n)||1,D=(0,O.useMemo)(()=>x>1?Math.max(x+6,12):12,[x]),I=(0,O.useMemo)(()=>{let e=Math.max(C||j?18.5*T:0,(S?5+10.5*T:0)+(d>1?d+0:0));return t||(e+=L),Math.max(e,0)},[t,C,L,j,T,d,S]),E=(0,O.useMemo)(()=>{let e=Math.max(u,1);return e-=Math.max(x+6,12),e-=Math.max(m+6,12),t&&(e-=L),Math.max(e,1)},[u,t,x,L,m]),H=(0,O.useMemo)(()=>{let e=Math.max(s,1)-I;return h>1&&(e-=h+0),w&&(e-=5+10.5*T),Math.max(e,1)},[h,w,s,I,T]),V=(0,O.useMemo)(()=>u>0&&s>0&&d>0&&h>0&&m>0&&x>0,[u,s,d,h,m,x]),F=pl(r),B=(0,O.useMemo)(()=>({setSvgContainer:c,chartWidth:u,chartHeight:s,setPlotPadding:M,isPlotMeasured:V,underPlotPortalId:l,overPlotPortalId:a,textScale:T,font:F,waterfallTotalLabel:i,setTopAxisRef:p,setTopAxisLabelRef:P,topAxisHeight:d,setBottomAxisRef:f,bottomAxisHeight:h,setBottomAxisLabelRef:k,setLeftAxisRef:b,setLeftAxisLabelRef:v,leftAxisWidth:x,setRightAxisRef:y,setRightAxisLabelRef:A,rightAxisWidth:m}),[c,u,s,V,l,a,T,F,i,p,d,f,h,b,x,y,m]),z=(0,O.useMemo)(()=>({plotOffsetX:D,plotOffsetY:I,plotWidth:E,plotHeight:H}),[D,I,E,H]);return(0,g.jsx)(mn.Provider,{value:B,children:(0,g.jsx)(xq.Provider,{value:z,children:o})})},Ih=()=>{let e=x$("plotWidth"),t=x$("plotHeight"),n=ma();return(0,g.jsx)(ep.P.rect,Object.assign({animate:{x:0,y:0,width:e,height:t},transition:f_,fill:"none",stroke:n.values.gridLineColor},Pt.gridLine,{rx:8}))},Ig=e=>{let{plot:t,axes:n=(0,g.jsx)(DB,{sides:["top","bottom","left","right"]}),originLines:r,hasOutline:i=!0}=e,o=x$("plotOffsetX"),l=x$("plotOffsetY"),a=mr("isPlotMeasured");return(0,g.jsxs)(g.Fragment,{children:[n,a&&(0,g.jsxs)(ep.P.g,{id:xW,initial:!1,animate:{x:o,y:l},transition:f_,children:[i?(0,g.jsx)(Ih,{}):null,t,r]})]})},If=h.I4.div(lR()),Im=h.I4.div(lY(),1),Iy=h.I4.div(lG(),3),Ix=h.I4.svg(lW(),2),Ib=e=>{let{children:t,plotAddons:n}=e,r=mr("chartWidth"),i=mr("chartHeight"),o=mr("setSvgContainer"),l=mr("underPlotPortalId"),a=mr("overPlotPortalId");return(0,g.jsxs)(If,{ref:o,children:[(0,g.jsx)(Im,{id:l}),r>0&&i>0&&(0,g.jsx)(Ix,{viewBox:"0 0 ".concat(r," ").concat(i),children:t}),n,(0,g.jsx)(Iy,{id:a})]})},IC=e=>{let{vizType:t,aestheticMappings:n,titleContent:r,chartSummary:i,footerContent:o,plot:l,trendline:a,axes:s,originLines:u,addons:c=[],data:d,vizPalette:p,fillTypeRange:h,lineTypeRange:f,highlightStyle:m,options:y,getDataPointId:x,goalLines:b,averageLine:C,xGoalValue:v,yGoalValue:j,percentageValueStrategy:A,formatSeriesLabel:w,curveType:k,textScale:S,font:P,comboPlotAxisCount:L,waterfallTotalLabel:M,flipAxes:T}=e,{group:D,x:I,y:E,color:H,alpha:V,fillType:F,lineType:B}=n,z=(0,g.jsxs)(g.Fragment,{children:[b,C,a]}),R=(e=>{let{vizType:t,data:n,x:r,y:i}=e;return(0,O.useMemo)(()=>"waterfall"!==t?n:(e=>{let{data:t,y:n}=e,r=t.getValues(n),i=[];for(let[e,t]of r.entries()){let n=0===e,o=e===r.length-1,l=y7(t);i.push(n?xT:o?xE:l?xD:xI)}return t.add({variableKey:xO,type:gA.Text,values:i}),t})({data:(e=>{let{data:t,y:n}=e,r=t.getValues(n),i=[],o=[],l=0;for(let[e,t]of r.entries()){if(null===t){i.push(null),o.push(null);continue}let n=0===e||e===r.length-1,a=n?0:l,s=fr(t)+(n?0:l);l=s,i.push(a),o.push(s)}return t.add({variableKey:xL,type:t.getType(n),values:i}),t.add({variableKey:xM,type:t.getType(n),values:o}),t})({data:(e=>{let{data:t,x:n,y:r}=e,i=t.getValues(r).filter(c5).map(fr);if(0===i.length)return t;let o=0;for(let e of i)o+=e;return t.appendValues(n,[yg(xE)]),t.appendValues(r,[o]),t})({data:n.clone(),x:r,y:i}),y:i}),y:i}),[t,n,r,i])})({vizType:t,data:d,x:I,y:E});return(0,g.jsx)(Ip,{textScale:S,font:P,waterfallTotalLabel:M,flipAxes:T,children:(0,g.jsx)(SB,{vizType:t,aestheticMappings:n,data:R,options:y,xGoalValue:v,yGoalValue:j,comboPlotAxisCount:L,flipAxes:T,children:(0,g.jsx)(xG,{vizType:t,data:R,vizPalette:p,lineTypeRange:f,lineType:B,color:H,alpha:V,fillType:F,fillTypeRange:h,children:(0,g.jsx)(Pa,{data:R,group:D,vizType:t,children:(0,g.jsx)(Db,{aestheticMappings:n,addons:c,data:R,vizType:t,getDataPointId:x,percentageValueStrategy:A,curveType:k,options:y,children:(0,g.jsx)(yO,{vizType:t,chartHasTrend:void 0!==a,data:R,aestheticMappings:n,highlightStyle:m,children:(0,g.jsx)(Di,{data:R,group:D,formatSeriesLabel:w,customLegendPosition:null==y?void 0:y.customLegendPosition,children:(0,g.jsx)(Ds,{data:R,x:I,y:E,group:D,formatLabel:w,children:(0,g.jsx)(xJ,{titleContent:r,chartSummary:i,footerContent:o,children:(0,g.jsxs)(Ib,{plotAddons:z,children:[(0,g.jsx)(Ig,Object.assign({},{plot:l,axes:s,originLines:u})),(0,g.jsx)(Dj,{addons:c})]})})})})})})})})})})},Iv=h.I4.div(lU()),Ij=(0,O.forwardRef)((e,t)=>{let{children:n}=e,r=x$("plotOffsetX"),i=x$("plotWidth");return(0,g.jsx)(Iv,{ref:t,style:{left:r+i+16},children:n})});Ij.displayName="SideLegend";let IA=(0,h.I4)(ep.P.div)(lN()),Iw=(0,h.I4)(ep.P.div)(lK()),Ik=e=>{let{children:t,vizType:n}=e,r=Pg("pieRadius"),i=x$("plotOffsetX"),o=x$("plotOffsetY"),l=Pg("pieCenterX"),a=Pg("pieCenterY"),s=Pf(r,n),u=g6();if(s<50)return null;let c=2*s-16,d=Math.min(c/Math.sqrt(Math.pow(u.width,2)+Math.pow(u.height,2)),1);return(0,g.jsx)(IA,{initial:!1,animate:{width:c,height:c,left:i+l-s+8,top:o+a-s+8},transition:f_,children:(0,g.jsx)(Iw,{ref:u.setElement,initial:!1,animate:{scale:d,x:"-50%",y:"-50%"},transition:f_,children:t})})},IS=e=>{let{vizType:t,children:n,addons:r=[],value:i,valueType:o,label:l,valueLabel:a,getDataPointId:s=Ty}=e,u=(e=>{let{vizType:t,value:n,valueType:r,label:i,valueLabel:o,getDataPointId:l}=e,{getColor:a,getFillType:s}=xY(),{visibleObservations:u}=Pl(),c=Pg("pieRadius"),d=Pg("pieCenterX"),p=Pg("pieCenterY"),h=mr("isPlotMeasured"),g=TJ({observations:u,value:n});return(0,O.useCallback)(()=>{if(!h)return[];let e=g.map(e=>e.value);return g.map(u=>{let h=u.data,g=h[n],f=i?h[i]:null,m=a(h),y=s(h);return{type:t,id:l(h),startAngle:u.startAngle,endAngle:u.endAngle,pieValue:g,valueType:r,percentage:y2({strategy:"divide-by-total",values:e,absoluteValue:g}),pieLabel:f,pieRadius:c,pieCenterX:d,pieCenterY:p,vizColor:m,fillType:y,valueLabel:o,observation:h}})},[t,g,a,l,s,h,i,d,p,c,n,o,r])})({vizType:t,value:i,valueType:o,label:l,valueLabel:a,getDataPointId:s});return(0,g.jsx)(bo,{dataPoints:u(),addons:r,children:n})},IP=e=>{let{vizType:t,data:n,aestheticMappings:r,rightLegend:i,centerContent:o,chartSummary:l,titleContent:a,footerContent:s,plot:u,addons:c=[],valueLabel:d,getDataPointId:p,formatDataLabel:h,formatSeriesLabel:f,textScale:m,font:y,legendPosition:x,shouldShowLabels:b,vizPalette:C}=e,v=g6(),{value:j,label:A,color:w}=r;return(0,g.jsx)(Ip,{textScale:m,font:y,children:(0,g.jsx)(Pa,{vizType:t,data:n,label:A,children:(0,g.jsx)(Ph,{sideLegendWidth:v.width,legendPosition:x,shouldShowLabels:b,formatDataLabel:h,value:j,label:A,children:(0,g.jsx)(xG,{vizType:t,data:n,color:w,vizPalette:C,children:(0,g.jsx)(IS,{vizType:t,addons:c,value:j,valueType:n.getType(j),label:A,valueLabel:d,getDataPointId:p,children:(0,g.jsx)(yO,{vizType:t,data:n,aestheticMappings:r,children:(0,g.jsx)(Di,{data:n,label:A,formatSeriesLabel:f,children:(0,g.jsxs)(xJ,{titleContent:a,chartSummary:l,footerContent:s,children:[(0,g.jsxs)(Ib,{plotAddons:o?(0,g.jsx)(Ik,{vizType:t,children:o}):null,children:[(0,g.jsx)(Ig,{plot:u,hasOutline:!1}),(0,g.jsx)(Dj,{addons:c})]}),i?(0,g.jsx)(Ij,{ref:v.setElement,children:i}):null]})})})})})})})})},IL={variant:"muted",size:"xs"},IM={[gA.Date]:(0,g.jsx)(b8,Object.assign({},IL)),[gA.Datetime]:(0,g.jsx)(b8,Object.assign({},IL)),[gA.Year]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.Month]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.MonthYear]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.DayMonth]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.WeeklyDateRange]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.WeeklyDateRangeWithYear]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.Quarter]:(0,g.jsx)(Ce,Object.assign({},IL)),[gA.Integer]:(0,g.jsx)(b4,Object.assign({},IL)),[gA.Decimal]:(0,g.jsx)(b4,Object.assign({},IL)),[gA.Percentage]:(0,g.jsx)(b6,Object.assign({},IL)),[gA.Duration]:(0,g.jsx)(b8,Object.assign({},IL)),[gA.Text]:(0,g.jsx)(b9,Object.assign({},IL)),[gA.Boolean]:(0,g.jsx)(b9,Object.assign({},IL))},IO=e=>{let{formattingType:t=gA.Text,currencyIso:n=gj.Usd}=e;if(t===gA.Currency)switch(n){case gj.Gbp:return(0,g.jsx)(Cr,Object.assign({},IL));case gj.Usd:return(0,g.jsx)(Ct,Object.assign({},IL));case gj.Eur:return(0,g.jsx)(Cn,Object.assign({},IL));default:return(0,g.jsx)(Ct,Object.assign({},IL))}return IM[t]},IT="graphy__table-plot",ID=h.I4.div(lZ(),sV.md),II=h.I4.table(lX()),IE=h.I4.thead(l_()),IH=h.I4.th(lQ(),uA("grey90")),IV=h.I4.td(lJ(),hq,mX,uA("textSecondary"),hK(1),hK(1.5),e=>{let{$textAlign:t}=e;return t}),IF=h.I4.div(lq(),hK(.75),hK(1.25),hK(1.5),hK(1),e=>{let{$textAlign:t}=e;return t}),IB=h.I4.div(l$()),Iz=h.I4.div(l1(),hq,mZ,uA("textPrimary"),e=>{let{$textAlign:t}=e;return+("start"===t)}),IR=h.I4.tbody(l0()),IY=h.I4.tr(l2(),IH,IV,uA("grey70"),uA("grey90"),uA("grey90"),IH,uA("grey90"),sV.md,sV.md,uA("grey100"),IV,sV.md,IV,sV.md,IV,uA("grey90")),IG=e=>{let{columns:t,data:n,titleContent:r,footerContent:i}=e,o=t.length*hz(10);return(0,g.jsx)(xJ,{titleContent:r,footerContent:i,children:(0,g.jsx)(ID,{children:(0,g.jsxs)(II,{id:IT,"aria-rowcount":n.length,style:{minWidth:o},children:[(0,g.jsx)(IE,{children:(0,g.jsx)(IY,{children:t.map((e,t)=>{let{title:n,formattingType:r,currencyIso:i}=e;return(0,g.jsx)(IH,{children:(0,g.jsxs)(IF,{$textAlign:IW(r),children:[(0,g.jsx)(IB,{children:(0,g.jsx)(IO,{formattingType:r,currencyIso:i})}),(0,g.jsx)(Iz,{$textAlign:IW(r),title:n,children:n})]})},"column-".concat(t))})})}),(0,g.jsx)(IR,{children:n.map((e,n)=>(0,g.jsx)(IY,{children:t.map((t,r)=>{let{getCellValue:i,formatValue:o=ug,formattingType:l}=t,a=o(i(e));return(0,g.jsx)(IV,{$textAlign:IW(l),title:a.plain,children:a.rich},"cell-".concat(n,"-").concat(r))})},"row-".concat(n)))})]})})})},IW=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gA.Text;return d1(e)?"end":"start"},IU=e=>{let{formattingType:t,intl:n,value:r,currency:i,numberFormat:o}=e;switch(t){case gA.Boolean:return fa({value:r});case gA.Currency:return fm({intl:n,value:r,currency:i,numberFormat:o});case gA.Date:return fW({intl:n,value:r});case gA.Datetime:return fU({intl:n,value:r});case gA.Year:return fH({intl:n,value:r});case gA.Quarter:return fT({value:r});case gA.MonthYear:return fM({intl:n,value:r});case gA.Month:return fL({intl:n,value:r});case gA.DayMonth:return fC({intl:n,value:r});case gA.WeeklyDateRange:return fI({intl:n,value:r});case gA.WeeklyDateRangeWithYear:return fE({intl:n,value:r});case gA.Decimal:return fv({intl:n,value:r,numberFormat:o});case gA.Duration:return fS({value:r});case gA.Integer:return fP({intl:n,value:r});case gA.Percentage:return fO({intl:n,value:r,numberFormat:o});case gA.Text:return fD({value:r})}},IN=h.I4.div(l5(),8,e=>{let{$justify:t}=e;return t},e=>{let{$align:t}=e;return t},e=>{let{$direction:t}=e;return"vertical"===t?"column":"row"},e=>{let{$direction:t}=e;return"vertical"===t?"width: 100%; height: 100%;":"width: 100%;"}),IK=h.I4.div(l3()),IZ=(0,h.AH)(l7(),uA("legendBorderColor"),hK(.25),hK(.75)),IX=h.I4.div(l4(),4,sG.subtle,e=>{let{$isHidden:t}=e;return t?.5:1},uA("legendBackground"),e=>{let{$variant:t}=e;return"pill"===t&&IZ},e=>{let{$isClickable:t}=e;return t&&(0,h.AH)(l9())}),I_=h.I4.div(ae(),sp,hq,e=>{let{$variant:t}=e;return"pill"===t&&(0,h.AH)(l6(),uA("legendTextColor"))},e=>{let{$variant:t}=e;return"popover"===t&&(0,h.AH)(l8(),uA("textPrimary"))}),IQ=h.I4.span(at(),uA("textSecondary")),IJ=h.I4.div(an(),hK(-.25)),Iq=h.I4.div(ar()),I$=e=>{let{theme:t,legendSymbol:n,vizColor:r,opacity:i,isDimmed:o,highlightStyle:l,backgroundColor:a}=e;if("bar"===n)return xr({theme:t,fill:r,opacity:null!=i?i:1,isDimmed:o,highlightStyle:l,backgroundColor:a});if("line"===n)return xa({theme:t,color:r,isDimmed:o,highlightStyle:l});try{return eq.Ay.mix(t.values.grey100,r,null!=i?i:1).hex()}catch(e){return r}},I1=e=>{let{label:t,value:n,vizColor:r,opacity:i,fillType:o,lineType:l,legendSymbol:a,customLegendSymbol:s,variant:u="pill",isHidden:c,onClick:d,isDimmed:p,highlightStyle:h,shouldShowValue:f}=e,m=ma(),{hasMouseOver:y,mouseOverTargetProps:x}=g$(),b=!!d;if(null===t||null===r)return null;let C=I$({theme:m,legendSymbol:a,vizColor:r,opacity:i,isDimmed:p,highlightStyle:h}),v=c?(0,g.jsx)(Iq,{children:(0,g.jsx)(bL,{size:"xs"})}):y?(0,g.jsx)(Iq,{children:(0,g.jsx)(bM,{size:"xs"})}):s||(0,g.jsx)(ue,{symbol:a,fill:C,pattern:((e,t,n)=>{if(["bar","tile","pie","donut"].includes(e)){if("hatched"===t)return"hatched"}else if("line"===e){if("dashed"===n)return"hatched";if("dotted"===n)return"dotted"}})(a,o,l)});return(0,g.jsxs)(IX,Object.assign({},b&&x,{$isClickable:b,$isHidden:!!c,role:"listitem","aria-label":"Legend item",$variant:u,onClick:d,children:[(0,g.jsx)(IJ,{children:v}),(0,g.jsxs)(I_,{$variant:u,title:t.plain,children:[t.rich,f&&n?(0,g.jsxs)(IQ,{children:[(0,g.jsx)("span",{children:"\xb7"}),n.rich]}):null]})]}))};function I0(e){let{seriesKey:t,visibleSeriesLength:n,isHiddenSeries:r}=e,i=!(!t||!(null==r?void 0:r(t)));return{isHidden:i,canToggleVisibility:n>1||i}}let I2=(0,h.i7)(ai()),I5=h.I4.div(ao()),I3=h.I4.div(al(),sJ.popover,uA("grey100"),uA("grey90"),I2),I7=h.I4.div(aa(),hK(.75),hK(1)),I9=h.I4.div(as(),hK(.5)),I4=h.I4.div(au(),uA("grey90")),I6=hK(1.5),I8=h.I4.div(ac()),Ee=h.I4.div(ad(),IZ,I6,4),Et=h.I4.div(ap()),En=h.I4.div(ah(),sp,uA("legendTextColor")),Er=h.I4.div(ag(),IZ,I6),Ei=h.I4.div(af(),IZ),Eo=O.forwardRef(function(e,t){var{count:n,formatLabel:r,legendSymbol:i}=e,o=s$(e,["count","formatLabel","legendSymbol"]);let l=ma();return n<=0?null:(0,g.jsxs)(I8,Object.assign({ref:t,"aria-label":"Show ".concat(n," hidden legend items")},o,{children:[(0,g.jsxs)(Ee,{children:[(0,g.jsx)(Et,{children:(0,g.jsx)(ue,{symbol:i,fill:l.values.grey60})}),(0,g.jsxs)(En,{children:["+",r(n).rich]})]}),(0,g.jsx)(Er,{}),(0,g.jsx)(Ei,{})]}))}),El=hN(.5),Ea=e=>{let{overflowingItems:t,formatLabel:n,isHiddenSeries:r,locallyVisibleSeriesLength:i,onToggleSeriesVisibility:o,highlightStyle:l}=e,a=gz(e=>e.computedConfig.type),s=gz(e=>e.computedConfig.comboPlotType),u=ba(),c=t.length,d=T9({vizType:a,comboPlotType:s,index:0,count:t.length});return(0,g.jsxs)(eT.bL,{children:[(0,g.jsx)(eT.l9,{asChild:!0,onClick:e=>e.stopPropagation(),children:(0,g.jsx)(I5,{role:"button",children:(0,g.jsx)(Eo,{count:c,formatLabel:n,legendSymbol:d})})}),(0,g.jsx)(md,{container:null==u?void 0:u.container,children:(0,g.jsxs)(I3,{as:eT.UC,side:"bottom",sideOffset:El,children:[(0,g.jsx)(I7,{children:(0,g.jsx)(I9,{role:"list",children:t.map((e,n)=>{let u=T9({vizType:a,comboPlotType:s,index:n,count:t.length}),{isHidden:c,canToggleVisibility:d}=I0({seriesKey:e.seriesKey,visibleSeriesLength:i,isHiddenSeries:r}),p=d&&{onClick:()=>o(e.seriesKey)};return(0,g.jsx)(I1,Object.assign({legendSymbol:u,isHidden:c,highlightStyle:l},p,e,{variant:"popover"}),n)})})}),(0,g.jsx)(I4,{as:eT.i3})]})})]})},Es=()=>{let e=(0,Y.A)();return t=>{let n=fP({intl:e,value:t});return{plain:n,rich:n}}},Eu=e=>{let{seriesKey:t,formatSeriesLabel:n}=e;return n(ym(t),ym(t))},Ec=(e,t)=>{let n=Ep(e,t);return 0===n.length?null:n.reduce((e,t)=>{try{return e+fr(t)}catch(t){return e}},0)},Ed=(e,t)=>{let n=Ep(e,t),r=Ec(e,t);return 0===n.length||null===r?null:r/n.length},Ep=(e,t)=>e.map(e=>e[t]).filter(e=>{if(null===e)return!1;try{return fr(e),!0}catch(e){return!1}}).map(fr),Eh=(e,t)=>{var n,r;return null!=(r=null==(n=[...e].reverse()[0])?void 0:n[t])?r:null},Eg=[...dh,...dg,"mekko","line","areaStacked","combo","scatter","bubble"],Ef=e=>{let{formatted:t}=e;return(0,g.jsx)(g.Fragment,{children:t.map((e,n)=>{let{rich:r}=e,i=n===t.length-1;return(0,g.jsxs)(O.Fragment,{children:[r,!i&&(0,g.jsx)(g.Fragment,{children:" \xb7 "})]},n)})})},Em=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ug,r=t.map(t=>n(t,e));return{plain:r.map(e=>{let{plain:t}=e;return t}).join("; "),rich:(0,g.jsx)(Ef,{formatted:r})}},Ey=e=>{var{availWidth:t,availHeight:n,highlightStyle:r,direction:i}=e,o=s$(e,["availWidth","availHeight","highlightStyle","direction"]);let l=Es(),a=(e=>{let{vizType:t,data:n,aestheticMappings:r,formatSeriesLabel:i=ug,formatLegendValue:o}=e,{getColor:l,getAlpha:a,getFillType:s,getLineType:u}=xY(),{isGroupHighlighted:c}=yM();return(0,O.useMemo)(()=>{if(Eg.includes(t)){let{group:e}=r,{partitionKeys:t,partitionPathLabels:o,partitionsMap:d}=yW({observations:[...n],group:e});return t.map((e,t)=>{var n,r;let[p]=null!=(n=d.get(e))?n:[];return{seriesKey:e,label:Em(e,null!=(r=o[t])?r:[],i),vizColor:p?l(p):null,opacity:p?a(p):null,fillType:p?s(p):null,lineType:p?u(p):null,isDimmed:!!p&&!1===c(p)}})}return"pie"===t||"donut"===t?[...n].reduce((e,t)=>{let{label:n,value:c}=r;if(!o)return e;let d=yg(t[n]);return[...e,{seriesKey:d,label:Eu({seriesKey:d,formatSeriesLabel:i}),value:o(t[c]),vizColor:l(t),opacity:a(t),fillType:s(t),lineType:u(t),isDimmed:!1}]},[]):[]},[r,n,o,i,a,l,s,u,c,t])})(o),s=mr("chartWidth"),u=x$("plotHeight"),c=null!=t?t:s,d=null!=n?n:u,p=yV(),{visibleCount:h,overflowCount:f}=(0,O.useMemo)(()=>{let e="horizontal"===i?c:d,t=0,n=0;for(let o of a){let s=p((0,g.jsx)(I1,Object.assign({legendSymbol:"bar",highlightStyle:r},o))),u=p((0,g.jsx)(Eo,{count:a.length-t-1,formatLabel:l,legendSymbol:"bar"})),c=n+8*(n>0)+("horizontal"===i?s.width:s.height),d=c,h="horizontal"===i?u.width:u.height;if(h>0&&(d+=8+h),d>e)return{visibleCount:t,overflowCount:a.length-t};n=c,t++}return{visibleCount:a.length,overflowCount:0}},[i,c,d,a,p,r,l]);return{allItems:a,visibleItems:a.slice(0,h),visibleCount:h,overflowingItems:a.slice(h),overflowCount:f}},Ex=e=>{var{availWidth:t,justify:n="start",align:r="center",direction:i="horizontal",shouldShowValues:o,onLegendItemClick:l,highlightStyle:a}=e,s=s$(e,["availWidth","justify","align","direction","shouldShowValues","onLegendItemClick","highlightStyle"]);let{onToggleSeriesVisibility:u,isHiddenSeries:c}=Pl(),{legendPosition:d}=Dr(),p=x$("plotHeight"),h=gz(e=>e.computedConfig.comboPlotType),{allItems:f,visibleItems:m,visibleCount:y,overflowingItems:x}=Ey(Object.assign(Object.assign({},s),{availWidth:t,availHeight:p,highlightStyle:a,direction:i})),b=Es();if(0===f.length||"top"!==d)return(0,g.jsx)(IK,{});let C=[...m,...x].filter(e=>{let{seriesKey:t}=e;return!c(t)});return(0,g.jsxs)(IN,{role:"list","aria-label":"Legend",$justify:n,$direction:i,$align:r,children:[m.slice(0,y).map((e,t)=>{var{seriesKey:n}=e,r=s$(e,["seriesKey"]);let i=T9({vizType:s.vizType,comboPlotType:h,index:t,count:f.length}),{isHidden:l,canToggleVisibility:d}=I0({seriesKey:n,visibleSeriesLength:C.length,isHiddenSeries:c}),p=d&&{onClick:()=>u(n)};return(0,g.jsx)(I1,Object.assign({legendSymbol:i,isHidden:l,highlightStyle:a,shouldShowValue:o},p,r),n)}),(0,g.jsx)(Ea,{highlightStyle:a,locallyVisibleSeriesLength:C.length,overflowingItems:x,formatLabel:b,isHiddenSeries:c,onToggleSeriesVisibility:u})]})},Eb=(0,h.I4)(ep.P.div)(am(),hK(1)),EC=h.I4.div(ay(),hK(1)),Ev=h.I4.div(ax()),Ej=h.I4.div(ab(),hK(.25),hK(3)),EA=h.I4.div(aC(),hK(.5)),Ew=h.I4.span(av(),sd.black,uA("textPrimary")),Ek=h.I4.span(aj()),ES=h.I4.div(aA()),EP=h.I4.div(aw(),hK(.5),uA("textSecondary")),EL=h.I4.div(ak()),EM=h.I4.span(aS(),sd.medium,uA("textPrimary")),EO=h.I4.div(aP(),e=>{let{$size:t}=e;switch(t){case"small":case"medium":return;case"large":return"calc(".concat(hK(.25)," * var(--typography-scale))")}},sG.subtle,e=>{let{$isHidden:t}=e;return t?.5:1},Ew,e=>{let{$size:t}=e;switch(t){case"small":return"1.4em";case"medium":return"2.3em";case"large":return"2.6em"}},ES,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return;case"large":return"calc(".concat(hK(.125)," * var(--typography-scale))")}},EM,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}},Ek,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),ET=e=>{let{size:t,symbol:n,metricValue:r,metricValueStat:i,seriesLabel:o,metricLabel:l,isHidden:a,onLegendItemClick:s}=e,{hasMouseOver:u,mouseOverTargetProps:c}=g$(),d=!!s,p=d&&{role:"button",onClick:s},h=a?(0,g.jsx)(bL,{size:"xs"}):u?(0,g.jsx)(bM,{size:"xs"}):n;return(0,g.jsxs)(EO,Object.assign({},d&&c,{$size:t,$isHidden:!!a,"aria-label":"Headline metric",children:[(0,g.jsxs)(EA,{children:[(0,g.jsx)(Ew,{"aria-label":"Metric value",children:r}),l&&(0,g.jsx)(Ek,{"aria-label":"Metric label",children:l})]}),(0,g.jsxs)(ES,{children:[i,(0,g.jsxs)(EP,Object.assign({},p,{children:[n?(0,g.jsx)(EL,{children:h}):null,(0,g.jsx)(EM,{"aria-label":"Series label",children:o})]}))]})]}))},ED=h.I4.div(aL(),sd.medium),EI=h.I4.div(aM(),hK(.5),e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),EE=h.I4.div(aO(),sd.medium),EH=h.I4.div(aT(),uw("currentColor",.2)),EV=h.I4.div(aD(),e=>{let{$isPositive:t}=e;return uA(t?"trendPositiveColor":"trendNegativeColor")},EE,e=>{let{$size:t}=e;switch(t){case"small":case"medium":return"1em";case"large":return"1.2em"}}),EF=e=>{let{children:t,isPositive:n=!1,size:r}=e;return(0,g.jsxs)(EV,{$isPositive:n,$size:r,children:[(0,g.jsx)(EH,{children:(0,g.jsx)(n?bI:bD,{})}),(0,g.jsx)(EE,{children:(0,g.jsx)("span",{children:t})})]})},EB=e=>{let{stat:t,size:n,metric:r,metricLabel:i,metricLabelType:o,observations:l,comparisonValue:a,formatTrend:s,formatMetricLabel:u,seriesKey:c}=e;if("current"!==t||"none"===a||!s||!dq(o))return null;let d=l.at(-1),p="tail"===a?l.at(-2):l.at(0),h=((e,t,n)=>{let r=null==e?void 0:e[t],i=null==n?void 0:n[t];return"number"!=typeof i||"number"!=typeof r||0===i?null:(r-i)/i})(d,r,p);if(!h||0===h)return null;let f=i?null==p?void 0:p[i]:void 0;return(0,g.jsxs)(EI,{$size:n,children:[(0,g.jsx)(EF,{isPositive:h>0,size:n,children:s(Math.abs(h))}),void 0!==f?(0,g.jsxs)(ED,{children:["from ",u(f,c).rich]}):null]})},Ez=e=>{var t;let n,{stat:r,size:i,observations:o,comparisonValue:l,metric:a,metricLabel:s,metricLabelType:u=gA.Text,seriesKey:c,hasMultipleSeries:d,legendSymbol:p,getColor:h,getAlpha:f,getFillType:m,getLineType:y,isGroupHighlighted:x,formatTrend:b,formatMetric:C=ug,formatMetricLabel:v=ug,formatSeriesLabel:j=ug,isHidden:A,onLegendItemClick:w,highlightStyle:k}=e,S=ma(),P=(0,O.useMemo)(()=>(e=>{let{stat:t,observations:n,seriesKey:r,metric:i,formatMetric:o}=e;switch(t){case"current":return o(Eh(n,i),ym(r));case"average":return o(Ed(n,i),ym(r));case"total":return o(Ec(n,i),ym(r));case"conversion":return o(((e,t)=>{let n=Ep(e,t),r=n[0],i=n[n.length-1];return void 0===r||void 0===i?null:i/r})(n,i),ym(r),gA.Percentage)}})({stat:r,observations:o,seriesKey:c,metric:a,formatMetric:C}),[C,a,o,c,r]),L=(0,O.useMemo)(()=>(e=>{let{stat:t,observations:n,seriesKey:r,metricLabel:i,metricLabelType:o,formatMetricLabel:l}=e;if(void 0===i)return null;switch(t){case"current":{let e=Eh(n,i);return null===e?null:l(e,ym(r))}case"average":case"total":if(dq(o)){let e=((e,t)=>{var n,r;return null!=(r=null==(n=e.find(e=>null!==e[t]))?void 0:n[t])?r:null})(n,i),t=((e,t)=>{var n,r;return null!=(r=null==(n=[...e].reverse().find(e=>null!==e[t]))?void 0:n[t])?r:null})(n,i);return null===e||null===t?null:l(e===t?e:[e,t],ym(r))}return null;case"conversion":return null}})({stat:r,observations:o,seriesKey:c,metricLabel:s,metricLabelType:u,formatMetricLabel:v}),[v,s,u,o,c,r]),M=(0,O.useMemo)(()=>null===c||"conversion"===r?null:Eu({seriesKey:c,formatSeriesLabel:j}),[j,c,r]),T=ER(r,d),D=M?"".concat(T).concat(null!=(t=null==M?void 0:M.rich)?t:""):T,[I]=o,E=I?I$({theme:S,legendSymbol:p,vizColor:h(I),opacity:f(I),isDimmed:!1===x(I),highlightStyle:k}):null;return I&&("dashed"===y(I)||"hatched"===m(I))?n="hatched":I&&"dotted"===y(I)&&(n="dotted"),(0,g.jsx)(ET,{size:i,symbol:d&&I&&E&&(0,g.jsx)(ue,{symbol:p,fill:E,pattern:n}),metricValue:P.rich,metricValueStat:(0,g.jsx)(EB,{stat:r,size:i,observations:o,comparisonValue:l,metric:a,metricLabel:s,metricLabelType:u,formatTrend:b,formatMetricLabel:v,seriesKey:c}),seriesLabel:D,metricLabel:null==L?void 0:L.rich,isHidden:A,onLegendItemClick:w})},ER=(e,t)=>{switch(e){case"average":return t?"Avg. ":"Average ";case"total":return"Total ";case"conversion":return"Total conversion rate ";case"current":return""}},EY=e=>{var{metricSize:t,vizType:n,comboPlotType:r,aestheticMappings:i,stat:o,data:l,comparisonValue:a,getColor:s,getAlpha:u,getFillType:c,getLineType:d,isHiddenSeries:p,onLegendItemClick:h,highlightStyle:f}=e,m=s$(e,["metricSize","vizType","comboPlotType","aestheticMappings","stat","data","comparisonValue","getColor","getAlpha","getFillType","getLineType","isHiddenSeries","onLegendItemClick","highlightStyle"]);let y={getColor:s,getAlpha:u,getFillType:c,getLineType:d};return(0,g.jsx)(Ej,{"aria-label":"Headline metrics",children:(()=>{if(null===o)return null;switch(n){case"line":case"areaStacked":case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"combo":case"scatter":case"funnel":case"bubble":{let{partitionKeys:e,partitionsMap:s}=yW({observations:[...l],group:i.group}),u=e.filter(e=>!(null==p?void 0:p(e))),{x:c,yValue:d}=i;return(0,g.jsx)(g.Fragment,{children:e.map((i,x)=>{var b;let{isHidden:C,canToggleVisibility:v}=I0({seriesKey:i,visibleSeriesLength:u.length,isHiddenSeries:p}),j=v&&{onLegendItemClick:()=>null==h?void 0:h(i)};return(0,g.jsx)(Ez,Object.assign({stat:o,size:t,observations:null!=(b=s.get(i))?b:[],comparisonValue:null!=a?a:null,metric:d,metricLabel:c,metricLabelType:l.getType(c),isHidden:C,seriesKey:i,hasMultipleSeries:e.length>=2,legendSymbol:T9({vizType:n,comboPlotType:r,index:x,count:e.length}),highlightStyle:f},j,y,m),i)})})}case"heatmap":{let{alpha:e}=i;return void 0===e?null:(0,g.jsx)(Ez,Object.assign({stat:o,size:t,observations:[...l],comparisonValue:null,metric:e,seriesKey:null,hasMultipleSeries:!1,legendSymbol:"tile",highlightStyle:f},y,m))}case"pie":case"donut":case"mekko":case"waterfall":return null}})()})},EG=e=>{switch(e.vizType){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"scatter":case"bubble":case"combo":return("total"!==e.stat||e.type!==gA.Percentage)&&"conversion"!==e.stat;case"heatmap":return"average"===e.stat;case"funnel":return"conversion"===e.stat;case"mekko":case"pie":case"donut":case"waterfall":case"table":return!1}},EW=h.I4.div(aI(),hK(1.5)),EU=h.I4.div(aE(),hK(.5)),EN=h.I4.div(aH(),e=>{let{$size:t}=e;return"".concat(t,"px")},e=>{let{$size:t}=e;return"".concat(t,"px")},e=>{let{$stroke:t}=e;return null!=t?t:"transparent"},e=>{let{$fill:t}=e;return null!=t?t:"transparent"}),EK=h.I4.span(aV(),hq,hK(20)),EZ=[1,2,5,10],EX=(e,t,n)=>({value:e,size:n(t(e)),label:e.toLocaleString()}),E_=e=>{var t,n,r;let{data:i,formatBubbleSizeValue:o}=e,l=(()=>{let{sizeScale:e}=SM(),{computeBubbleSize:t,minSize:n,maxSize:r}=Px(),[i,o]=e.domain(),l=((e,t)=>{let n=[],r=Math.floor(Math.log10(t));for(let i=Math.floor(Math.log10(Math.max(e,1)));i<=r;i++){let r=Math.pow(10,i);EZ.forEach(i=>{let o=i*r;o>=e&&o<=t&&n.push(o)})}return n.sort((e,t)=>e-t)})(i,((e,t,n,r)=>Math.min(e.invert((26-n)/(r-n)),t))(e,o,n,r)).map(n=>EX(n,e,t)),a=0===l.length?[]:l.reduce((e,t)=>{if(0===e.length)return[t];let n=e[e.length-1];return n&&t.size>=1.25*n.size?[...e,t]:e},[]);return 0===a.length?[EX(i,e,t)]:(e=>e.length<=4?e:[0,Math.floor(e.length/3),Math.floor(2*e.length/3),e.length-1].map(t=>e[t]).filter(Boolean))(a)})(),{getColor:a}=xY(),s=(0,h.DP)(),u=gz(e=>e.computedConfig),c=(0,O.useMemo)(()=>{let[e]=[...i];if(!e)return null;let t=xa({theme:s,color:a(e),isDimmed:!1});return{defaultFill:(0,eq.Ay)(t).alpha(.5).hex(),defaultStroke:eq.Ay.mix(s.values.grey0,t,.6).alpha(.5).hex()}},[i,a,s]);if(!l.length||!("sizeProperty"in u)||!u.sizeProperty)return null;let d=null==(t=u.sizeProperty)?void 0:t.label,p=EQ(o,null==(n=l[0])?void 0:n.value),f=EQ(o,null==(r=l.at(-1))?void 0:r.value);return(0,g.jsxs)(EW,{children:[(0,g.jsx)(EK,{children:d}),(0,g.jsxs)(EU,{children:[l.length>1?(0,g.jsx)("span",{children:p}):null,l.map(e=>(0,g.jsx)(EN,{$size:e.size,$fill:null==c?void 0:c.defaultFill,$stroke:null==c?void 0:c.defaultStroke},e.label)),(0,g.jsx)("span",{children:f})]})]})},EQ=(e,t)=>{var n;if(!t)return"";let r=null==e?void 0:e(t);return null!=(n=null==r?void 0:r.plain)?n:""},EJ=e=>{let{colors:t,maxColors:n=3,backgroundColor:r}=e,i=t.slice(0,n);return(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 22",style:{width:"calc(22px * var(--typography-scale))",height:"calc(16px * var(--typography-scale))"},fill:"none",children:(0,g.jsx)("g",{children:[...i].reverse().map((e,t)=>{let n=8.5*(i.length-1-t);return(0,g.jsx)("rect",{x:n,y:3,width:13.5,height:16,rx:3.8,fill:e,stroke:r,strokeWidth:1.6},t)})})})},Eq=e=>{var{availWidth:t,justify:n="start",align:r="center",direction:i="horizontal",shouldShowValues:o,onLegendItemClick:l,highlightStyle:a,backgroundColor:s}=e,u=s$(e,["availWidth","justify","align","direction","shouldShowValues","onLegendItemClick","highlightStyle","backgroundColor"]);let{legendPosition:c}=Dr(),d=x$("plotHeight"),{allItems:p}=Ey(Object.assign(Object.assign({},u),{availWidth:t,availHeight:d,highlightStyle:a,direction:i})),{getColor:h}=xY(),f=(0,O.useMemo)(()=>{let e=[...new Set([...u.data].map(e=>h(e)).filter(e=>!!e))];return 1===e.length?e:Array.from({length:3},(t,n)=>e[n%e.length])},[u.data,h]);if(0===p.length||"top"!==c)return(0,g.jsx)(IK,{});let m=p[0];return m?(0,g.jsx)(IN,{role:"list","aria-label":"Legend",$justify:n,$direction:i,$align:r,children:(0,g.jsx)(I1,Object.assign({legendSymbol:"bar",customLegendSymbol:f.length>1&&(0,g.jsx)(EJ,{colors:f,backgroundColor:s}),highlightStyle:a,shouldShowValue:o},m),null==m?void 0:m.seriesKey)}):null},E$=e=>{let{stat:t,data:n,shouldShowTopLegend:r=!0,vizType:i,aestheticMappings:o,formatBubbleSizeValue:l}=e,{isHiddenSeries:a,onToggleSeriesVisibility:s}=Pl(),{isGroupHighlighted:u}=yM(),{getColor:c,getAlpha:d,getFillType:p,getLineType:h}=xY(),f=T7(i,n,o.group),{showLegend:m,legendAvailWidth:y,showHeadlineMetrics:x,resolvedMetricSize:b}=(e=>{var{areHeadlineMetricsSupported:t}=e,n=s$(e,["areHeadlineMetricsSupported"]);let{stat:r,metricSize:i}=n,o=mr("chartWidth"),{getColor:l,getAlpha:a,getFillType:s,getLineType:u}=xY(),{isGroupHighlighted:c}=yM(),d=yV();return(0,O.useMemo)(()=>{let e={getColor:l,getAlpha:a,getFillType:s,getLineType:u,isGroupHighlighted:c};if(o<1)return{showLegend:!1,legendAvailWidth:0,showHeadlineMetrics:!1,resolvedMetricSize:null};if(null===r||!t)return{showLegend:!0,legendAvailWidth:o,showHeadlineMetrics:!1,resolvedMetricSize:null};let{resolvedMetricSize:p,showLegend:h}=(e=>{let{metricSize:t,chartWidth:n,measureHeadlineMetrics:r}=e;if("auto"!==t){let{width:e}=r(t);return{resolvedMetricSize:t,showLegend:e>n}}for(let e of["large","medium","small"]){let{width:t}=r(e);if(t<=n)return{resolvedMetricSize:e,showLegend:!1}}return{resolvedMetricSize:"small",showLegend:!1}})({metricSize:i,chartWidth:o,measureHeadlineMetrics:t=>d((0,g.jsx)(EY,Object.assign({},e,n,{metricSize:t})))});return{showLegend:h,legendAvailWidth:o,showHeadlineMetrics:!0,resolvedMetricSize:p}},[t,o,a,l,s,u,c,d,i,n,r])})(Object.assign({areHeadlineMetricsSupported:EG({vizType:i,type:"pie"===i||"donut"===i?n.getType(o.value):n.getType(o.yValue),stat:t})},e));return 1>mr("chartWidth")?null:(0,g.jsxs)(Eb,{initial:{opacity:0},animate:{opacity:1},transition:f_,children:[x&&(0,g.jsx)(EY,Object.assign({getColor:c,getAlpha:d,getFillType:p,getLineType:h,isGroupHighlighted:u},e,{metricSize:b,isHiddenSeries:a,onLegendItemClick:s})),(0,g.jsxs)(EC,{children:[f&&m&&(0,g.jsx)(Eq,Object.assign({availWidth:y,justify:E1(i,x)},e)),!f&&m&&r&&(0,g.jsx)(Ex,Object.assign({availWidth:y,justify:E1(i,x)},e)),"bubble"===i&&(0,g.jsx)(Ev,{children:(0,g.jsx)(E_,{data:n,formatBubbleSizeValue:l})})]})]})},E1=(e,t)=>dm.includes(e)?t?"end":"center":"start",E0=h.I4.svg(aF()),E2=e=>{let{children:t,zIndex:n}=e,r=mr("chartWidth"),i=mr("chartHeight"),o=mr("isPlotMeasured"),l=x$("plotOffsetX"),a=x$("plotOffsetY");return o?(0,g.jsx)(E0,{viewBox:"0 0 ".concat(r," ").concat(i),style:{zIndex:n},children:(0,g.jsx)("g",{transform:"translate(".concat(l," ").concat(a,")"),children:t})}):null},E5=h.I4.rect(aB(),uA("targetLineColor")),E3=h.I4.path(az(),uA("targetLineColor")),E7=h.I4.text(aR(),sm,uA("grey100")),E9=e=>{let{formattedLabel:t,yPosition:n,renderSymbol:r}=e,i=ma(),{flipAxes:o}=SM(),a=x$("plotWidth"),s=x$("plotHeight"),u=mr("chartHeight"),c=mr("isPlotMeasured"),d=mr("textScale"),p=o?a:s,h=g6(),f=(e=>{let{labelWidth:t,flipAxes:n,hasSymbol:r}=e,i=5+(n?-6.5-t/2:-13),o=16*!!r;return{arrow:{x:-13+t+5+o,y:-10.85,width:12,height:21.6},labelBackground:{x:n?-6.5-t/2:-13,y:-10.85,width:t+10+o,height:21.7},label:{x:i+o,y:0},symbol:{x:i,y:-6,width:12,height:12}}})({labelWidth:h.width,flipAxes:o,hasSymbol:!!r});return null!==n&&n>=0&&n<=p&&!(u<=0)&&c?(0,g.jsx)(E2,{zIndex:f6.targetLines,children:(0,g.jsxs)(ep.P.g,{initial:!1,animate:{[o?"x":"y"]:n},transition:f_,style:{position:"relative",zIndex:f6.targetLines},children:[(0,g.jsx)(Pn,{ruleStyle:"targetLine",orientation:o?l.Y:l.X,origin:0,end:o?s:a,crossOrigin:0,stroke:i.values.targetLineColor}),(0,g.jsxs)("g",{style:{transform:"scale(".concat(d,")"),transformBox:"fill-box",transformOrigin:"left"},children:[!o&&(0,g.jsx)("svg",Object.assign({},f.arrow,{viewBox:"0 0 10 18",children:(0,g.jsx)(E3,{d:"M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z"})})),(0,g.jsx)(E5,Object.assign({},f.labelBackground,{rx:6})),null==r?void 0:r(f.symbol),(0,g.jsx)(E7,Object.assign({},f.label,{textAnchor:"start",dominantBaseline:"central",ref:h.setElement,children:t}))]})]},String(o))}):null},E4={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:f_},E6=[...dh,...dg,"line","combo","areaStacked","waterfall"],E8=e=>{let t,{y:n,group:r=[],seriesKey:i,highlightStyle:o,formatLabel:l=ug}=e,a=ma(),s=gz(e=>e.computedConfig.type),u=gz(e=>e.computedConfig.comboPlotType),{getColor:c,getAlpha:d}=xY(),{getYAxisPosition:p}=SM(),{isGroupHighlighted:h}=yM(),{visibleObservations:f}=Pl(),{partitionKeys:m,partitionsMap:y}=yW({observations:f,group:r}),x=(0,O.useMemo)(()=>{var e,t,n;return 1===m.length?null!=(t=y.get(null!=(e=m[0])?e:""))?t:[]:null!==i&&y.has(i)&&null!=(n=y.get(i))?n:[]},[m,y,i]),b=(0,O.useMemo)(()=>Ed(x,n),[x,n]),C=null!==b&&E6.includes(s),v=p(b),j=l(b);if(i){let e=T9({vizType:s,comboPlotType:u,index:m.indexOf(i),count:m.length}),[n]=x,r=n?I$({theme:a,legendSymbol:e,vizColor:c(n),opacity:d(n),isDimmed:!1===h(n),highlightStyle:o}):"";t=t=>(0,g.jsx)(ue,Object.assign({symbol:e,fill:r},t))}return(0,g.jsx)(ef.N,{children:C&&(0,g.jsx)(ep.P.g,Object.assign({},E4,{children:(0,g.jsx)(E9,{formattedLabel:"Average: ".concat(j.plain),yPosition:v,renderSymbol:t})}))})},He=()=>[],Ht=()=>({theme:"graphy",palette:"graphy",borderStroke:cJ.border,borderType:"gradient",borderColor:"lilac",shouldHideCaption:!0,shouldHideSourceSection:!0,shouldHideLogo:!1}),Hn=()=>({decimalPlaces:"auto",abbreviation:"auto"}),Hr=(e,t)=>{let n=pT(e);if(!pI(n,t))throw Error("Invalid date format");let r=new Date(n);return t&&(r=(0,V.qg)(n,t,new Date)),new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))},Hi=/\s*[–—]\s*|\s-\s/,Ho=e=>{if(!pw(e))throw Error("Invalid number format");let t=1;return/k$/i.test(e)&&(t=1e3,e=e.slice(0,-1)),/m$/i.test(e)&&(t=1e6,e=e.slice(0,-1)),/b$/i.test(e)&&(t=1e9,e=e.slice(0,-1)),/t$/i.test(e)&&(t=1e12,e=e.slice(0,-1)),Number(e.split(",").join(""))*t},Hl="Invalid percentage format";dR.extend({dataType:dF,defaultLabel:D.Yj()});let Ha="filler",Hs={[gA.Date]:"Date",[gA.Datetime]:"Date",[gA.DayMonth]:"Date",[gA.Year]:"Year",[gA.Quarter]:"Quarter",[gA.Month]:"Month",[gA.MonthYear]:"Month",[gA.WeeklyDateRange]:"Week",[gA.WeeklyDateRangeWithYear]:"Week",[gA.Currency]:"Series",[gA.Decimal]:"Series",[gA.Integer]:"Series",[gA.Percentage]:"Series",[gA.Duration]:"Series",[gA.Boolean]:"Category",[gA.Text]:"Category"},Hu=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dk,r=Hc(e,t),i=((e,t)=>{let n=new Map,r=new Set(e.map(e=>e.key));for(let e of t){for(let t of r){let i=e[t];pG(i)||(n.set(t,i),r.delete(t))}if(0===r.size)break}return n})(e,t);return Hh(e.reduce((e,t,o)=>{if(o===r){let n=Hp(t);return e.computedProperties.push(n),e.categoricalProperties.push(n),e}let l=i.get(t.key);if(pG(l))return e;let{computedProperty:a,isNumeric:s}=Hd(t,e.numericProperties.length,l,n);return s?(e.numericProperties.push(a),e.computedProperties.push(a)):(e.computedProperties.push(a),e.categoricalProperties.push(a)),e},{computedProperties:[],numericProperties:[],categoricalProperties:[]}))},Hc=(e,t)=>{let n=((e,t)=>{let n=[];for(let r of e)if(hO(r)&&n.push(r),n.length===t)break;return n})(t,5);return e.findIndex(e=>{let t=n.map(t=>t[e.key]).filter(e=>!pG(e));return t.length>=2&&t.every(e=>"number"==typeof e?!Number.isNaN(e)&&e>=1900&&e<=2199:"string"==typeof e&&pV.test(e))})},Hd=(e,t,n,r)=>{var i;let o=pY(n,r),l=d1(o.type),a=Hg(o.type,t);return{isNumeric:l,computedProperty:Object.assign(Object.assign({},e),{dataType:o,aggregation:l?null!=(i=e.aggregation)?i:"sum":void 0,defaultLabel:a})}},Hp=e=>Object.assign(Object.assign({},e),{dataType:{type:gA.Year,dateFormat:"yyyy"},defaultLabel:"Year"}),Hh=e=>{let{computedProperties:t,categoricalProperties:n,numericProperties:r}=e;if(1===n.length&&0===r.length){let e={key:Ha,dataType:{type:gA.Decimal},defaultLabel:Hg(gA.Decimal),aggregation:"sum"};return{computedProperties:[...t,e],categoricalProperties:n,numericProperties:[e]}}return{computedProperties:t,categoricalProperties:n,numericProperties:r}},Hg=(e,t)=>Hs[e].includes("Series")&&void 0!==t?"Series ".concat(t+1):Hs[e],Hf=(e,t,n)=>{let r,i=((e,t,n)=>{if("table"!==e&&"scatter"!==e)return t.numericProperties.some(e=>e.key===Ha)?void 0:n.shouldAggregate?t.categoricalProperties[0]:void 0})(n,e,t),o=void 0!==i,l=o&&void 0===t.shouldAggregate&&!dq(null==i?void 0:i.dataType.type),a=o&&(l||!0===t.shouldAggregate);if(a){let e=dq(i.dataType.type);(!e||t.groupByTimeUnit&&hV(t.groupByTimeUnit,i.dataType.type))&&(r={key:i.key,timeUnit:e?t.groupByTimeUnit:void 0})}let s=e.computedProperties.map(e=>{let t=e.key!==(null==i?void 0:i.key)&&d1(e.dataType.type);return{key:e.key,originalKey:e.key,aggregation:t?e.aggregation:void 0}}),u=t.sortBy?[t.sortBy]:void 0,c=r&&(null==i?void 0:i.dataType.type)&&dq(i.dataType.type)&&r.timeUnit?hX(i.dataType.type,r.timeUnit):null==i?void 0:i.dataType.type,d=[];return t.rollingDateFilter&&i&&c&&d4(c,t.rollingDateFilter.timeUnit)&&d.push(Object.assign({key:i.key,operator:"within last"},t.rollingDateFilter)),a&&0===e.numericProperties.length&&s.push({key:"".concat(i.key,"_count"),aggregation:"count",isDerived:!0,originalKey:i.key}),{isAggregated:a,groupByProperty:i,resolvedGroupByDataType:c,view:{sortBy:u,groupBy:r,properties:s,filters:d}}},Hm=(e,t)=>{let n=Object.assign({},e);for(let r in t)void 0!==t[r]&&t[r]!==e[r]&&(n[r]=t[r]);return n},Hy=(0,O.createContext)(null),Hx=uE(Hy,"GraphProvider"),Hb=e=>{let{config:t,onChange:n,children:r,graphStateRef:i}=e,o=gG(t),l=(0,O.useCallback)(e=>{let t=((e,t)=>{var n,r,i;let o=Object.assign({},e);if(void 0!==o.data){let e=((e,t)=>{var n,r;let i=null==(n=e.computedProperties.categoricalProperties.find(e=>!0!==e.isHidden))?void 0:n.key;return hR(null!=(r=t.annotations)?r:e.annotations,t.data||e.data,i)})(t,{annotations:null!=(n=o.annotations)?n:t.annotations,data:null!=(r=o.data)?r:t.data});o=Hm(o,{annotations:e})}let l=null==(i=o.visualisationConfig)?void 0:i.type;return l&&l!==t.computedConfig.type&&(o=Hm(o,((e,t,n)=>{if(hS(n,t.properties)){let t=hk.find(t=>t.config.type===e);if(t)return{titleDocument:t.titleDocument,datasetConfig:t.datasetConfig,data:t.data}}return{}})(l,t.datasetConfig,t.data))),o})("function"==typeof e?e(o.current,i.current):e,i.current);Object.keys(t).length>0&&(null==n||n(t,o.current,i.current))},[o,i,n]);return(0,g.jsx)(Hy.Provider,{value:l,children:r})},HC=e=>e instanceof Date?e6.op.timestamp(e):e;function Hv(e){if("number"!=typeof e)throw Error("Value must be numeric to use numeric comparison operators")}function Hj(e){if("string"!=typeof e)throw Error("Value must be a string to use string comparison operators")}let HA=[],Hw=(e,t)=>{if(null==e)return null;try{return"string"==typeof e?((e,t)=>{let n=e.trim();switch(t.type){case gA.Decimal:case gA.Integer:case gA.Duration:return Ho(n);case gA.Percentage:return(e=>{if(!pH(e))throw Error(Hl);let t=Number(e.replace(/%/g,"").replace(/,/g,""))/100;if(Number.isNaN(t))throw Error(Hl);return t})(n);case gA.Currency:return(e=>{if(!pP(e))throw Error("Invalid currency format");return Ho(pS(e))})(n);case gA.Datetime:case gA.Date:case gA.Year:case gA.MonthYear:case gA.Month:case gA.DayMonth:case gA.Quarter:return Hr(n,t.dateFormat);case gA.WeeklyDateRange:case gA.WeeklyDateRangeWithYear:return((e,t)=>{let[n,r]=(e=>{let[t,n]=e.split(Hi);return[null==t?void 0:t.trim(),null==n?void 0:n.trim()]})(e);if(!n||!r)throw Error("Invalid weekly date range format");return Hr(n,t)})(n,t.dateFormat);case gA.Text:case gA.Boolean:return n}})(e,t):e}catch(e){return null}},Hk=(e,t,n,r)=>{let i=hD(t)?t.xAxisProperties[0]:n.categoricalProperties[0];if(!i)return HA;let o=new uf;return(e=>{let{chartData:t,view:n}=e,r=t.map(e=>Object.fromEntries(n.properties.map(t=>[t.key,e[t.originalKey]])));return((e,t)=>{var n,r,i,o,l;let a,s,u,c=[];e.groupBy&&(c.push((i=e.groupBy,o=e.weekStartsOn,e=>e.groupby({[i.key]:(0,e6.ih)(e=>(e=>{var t;let{rowValue:n,timeUnit:r,weekStartsOn:i=1}=e;if(!r||!pI(t=n)||!(t instanceof Date||"number"==typeof t))return n;switch(r){case"year":return e6.op.utcdatetime(e6.op.utcyear(n),0,1);case"quarter":{let e=3*Math.floor(e6.op.utcmonth(n)/3);return e6.op.utcdatetime(e6.op.utcyear(n),e,1)}case"month":return e6.op.utcdatetime(e6.op.utcyear(n),e6.op.utcmonth(n),1);case"week":{let e=(0,e8.k)(n,{weekStartsOn:i});return e6.op.utcdatetime(e.getFullYear(),e.getMonth(),e.getDate())}case"day":return e6.op.utcdatetime(e6.op.utcyear(n),e6.op.utcmonth(n),e6.op.utcdate(n));default:return n}})({timeUnit:i.timeUnit,weekStartsOn:o,rowValue:e[i.key]}))}))),c.push((a=e.properties,s=e.groupBy,e=>{let t=a.filter(e=>e.aggregation&&e.key!==s.key);return e.rollup(t.reduce((e,t)=>{let{aggregation:n,key:r}=t;return n?Object.assign(Object.assign({},e),{[r]:e6.op[n](r)}):e},{}))}))),(null==(n=e.filters)?void 0:n.length)&&c.push((u=e.filters,e=>e.filter((0,e6.ih)(t=>u.flatMap(t=>"within last"===t.operator?((e,t)=>{let n=t.rollup({max:e6.op.max(e.key)}).object(),r=e6.op.timestamp((0,te.D)(n.max)),i=e6.op.timestamp((0,te.D)(((e,t,n)=>{switch(e){case"day":return(0,tt.e)(n,t);case"week":return(0,ti.k)(n,t);case"month":return(0,tn.a)(n,t);case"quarter":return(0,tr.c)(n,t);case"year":return(0,to.d)(n,t)}})(e.timeUnit,e.value,r)));return[{key:e.key,operator:">=",value:i},{key:e.key,operator:"<=",value:r}]})(t,e):t).every(e=>(e=>{let{first:t,last:n,operator:r}=e,[i,o]=[HC(t),HC(n)],l=c9.safeParse(r);if(l.success)return((e,t,n)=>{if(null==t)return!0;switch(Hv(t),Hv(n),e){case">":return t>n;case">=":return t>=n;case"<":return t{switch(Hj(t),Hj(n),e){case"contains":return e6.op.split(e6.op.upper(t),e6.op.upper(n),void 0).length>1;case"does not contain":return 1===e6.op.split(e6.op.upper(t),e6.op.upper(n),void 0).length}})(a.data,i,o);if("==="===r)return i===o;if("!=="===r)return i!==o;throw Error("Operator ".concat(r," not supported"))})({first:t[e.key],last:e.value,operator:e.operator})))))),(null==(r=e.sortBy)?void 0:r.length)&&c.push((l=e.sortBy,e=>e.orderby(...l.map(e=>"desc"===e.direction?(0,e6.i8)(e.key):e.key))));let d=e.properties.map(e=>e.key);return c.reduce((e,t)=>t(e),(0,e6.HT)(t).select(d)).objects()})(n,r)})({chartData:e.filter(hO).map(e=>{let t=Hw(e[i.key],i.dataType),r=i.key===Ha?{}:{[i.key]:t};return HS(i,t)&&o.incrementYearIfNeeded(t),n.computedProperties.forEach(t=>{if(t.key===i.key)return;if(t.key===Ha){let n=e[i.key];return void(r[t.key]=Hw(n,t.dataType))}let n=e[t.key];r[t.key]=Hw(n,t.dataType)}),r}),view:r})},HS=(e,t)=>!!(0,E.f)(t)&&d$(e.dataType.type),HP={count:"Count",distinct:"Distinct",sum:"Sum",min:"Min",max:"Max",mean:"Average",median:"Median",mode:"Mode"},HL=(e,t)=>{var n;return 0===t.length&&e.length>=1?{xAxisProperties:e[0]?[e[0]]:[],yAxisProperties:[...null!=(n=e.slice(1))?n:[]],sizeProperty:void 0}:{xAxisProperties:t[0]?[t[0]]:[],yAxisProperties:e,sizeProperty:void 0}},HM=e=>e.some(e=>e.dataType.type===gA.Percentage),HO=e=>{var t;let n=null==(t=e[0])?void 0:t.dataType.type;return!!n&&dq(n)},HT=e=>{let{colorScheme:t,graphBackground:n,shouldTintBackground:r,vizColor:i}=e;return r?uP(n,i,"dark"===t?.1:.05):n},HD=[...dh,...dg,"line","areaStacked","combo","waterfall"],HI=e=>{let{children:t,brandKit:n,parserName:r,onChange:i,config:o={},customPalettes:l,enableLegacySingleBarColorMode:a=!1,canvasColorToVariableName:s=e=>"graphy-canvas-".concat(e),theme:u=h4,i18nOverrides:c}=e,d=(e=>{var t,n,r,i,o,l,a,s,u;return Object.assign(Object.assign({},e),{data:null!=(t=e.data)?t:[],datasetConfig:null!=(n=e.datasetConfig)?n:{isDataHorizontal:!1,properties:[]},numberFormat:null!=(r=e.numberFormat)?r:{decimalPlaces:"auto",abbreviation:"auto"},annotations:null!=(i=e.annotations)?i:[],customAppearanceConfig:null!=(o=e.customAppearanceConfig)?o:Ht(),visualisationConfig:null!=(l=e.visualisationConfig)?l:hr(),titleDocument:e.titleDocument&&null!=(a=uY.safeParse(e.titleDocument).data)?a:OE,caption:e.caption&&null!=(s=uY.safeParse(e.caption).data)?s:OV,themeOverrides:null!=(u=e.themeOverrides)?u:{}})})(o),{data:p,datasetConfig:h,numberFormat:f,annotations:m,customAppearanceConfig:y,visualisationConfig:x,titleDocument:b,caption:C,sourceLabel:v,sourceUrl:j,fontList:A,themeOverrides:w}=d,k=(0,O.useMemo)(()=>Object.assign(Object.assign({},u),{values:Object.assign(Object.assign({},u.values),w)}),[u,w]),S=(0,O.useMemo)(()=>pq(x),[x]),P=(0,O.useMemo)(()=>Object.assign(Object.assign({},h),{properties:h.properties.filter(e=>!e.isHidden)}),[h]),L=(0,O.useMemo)(()=>(e=>{let{customAppearanceConfig:t}=e,n=t;return(e=>{var t,n,r,i,o;return(null==e?void 0:e.borderColor)?e:Object.assign(Object.assign({},e),{borderColor:null!=(o=null!=(n=null!=(t=null==e?void 0:e.borderStyleName)?t:null==e?void 0:e.customBorderStyle)?n:null==(i=null==(r=null==e?void 0:e.seriesConfig)?void 0:r.series1)?void 0:i.color)?o:gd,borderStyleName:null,customBorderStyle:void 0})})(n=(e=>{var t;return void 0!==(null==e?void 0:e.borderStroke)?e:"none"===(null==e?void 0:e.borderStyle)?Object.assign(Object.assign({},e),{borderStroke:cJ.stroke,borderType:c$.enum.grey,borderColor:void 0}):("custom"===(null==e?void 0:e.theme)||"brandKit"===(null==e?void 0:e.theme)||"customPalette"===(null==e?void 0:e.theme))&&(null==(t=null==e?void 0:e.customBorderStyle)?void 0:t.startsWith("#"))?Object.assign(Object.assign({},e),{borderStroke:cJ.border,borderType:c$.enum.custom,borderColor:null==e?void 0:e.customBorderStyle}):(null==e?void 0:e.borderStyle)===c$.enum.gradient||(null==e?void 0:e.borderStyle)===c$.enum.solid||(null==e?void 0:e.borderStyle)===c$.enum.custom?Object.assign(Object.assign({},e),{borderStroke:cJ.border,borderType:null==e?void 0:e.borderStyle,borderColor:void 0}):Object.assign(Object.assign({},e),{borderStroke:cJ.stroke,borderType:c$.enum.grey,borderColor:void 0})})(n))})({customAppearanceConfig:y}),[y]),M=(0,O.useMemo)(()=>Hu(P.properties,p,S.locale),[P.properties,p,S.locale]),T=(0,O.useMemo)(()=>Hf(M,P,S.type),[M,P,S.type]),D=(0,O.useMemo)(()=>((e,t)=>{let{vizType:n,view:r,computedProperties:i}=t;return Object.assign(Object.assign({},e),(e=>{var t;let{vizType:n,view:r,computedProperties:i}=e,{computedProperties:o,numericProperties:l,categoricalProperties:a}=((e,t)=>{let n=e.properties.filter(e=>t.categoricalProperties.some(t=>t.key===e.originalKey)),r=e.properties.filter(e=>t.numericProperties.some(t=>t.key===e.originalKey)),i=n.map(n=>{let r=t.categoricalProperties.find(e=>e.key===n.originalKey);if(!r)throw Error("Computed property not found for view property: ".concat(n.originalKey));return e.groupBy&&e.groupBy.timeUnit&&e.groupBy.key===r.key?Object.assign(Object.assign({},r),{dataType:{type:hX(r.dataType.type,e.groupBy.timeUnit)}}):r}),o=r.map(e=>{let n=t.numericProperties.find(t=>t.key===e.originalKey);if(!n)throw Error("Computed property not found for view property: ".concat(e.originalKey));return e.isDerived&&e.aggregation?Object.assign(Object.assign({},n),{dataType:{type:gA.Decimal},label:HP[e.aggregation],defaultLabel:HP[e.aggregation]}):n});return{computedProperties:[...i,...o],categoricalProperties:i,numericProperties:o}})(r,i);switch(n){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"combo":case"mekko":case"heatmap":{let{xAxisProperties:e,yAxisProperties:t}=HL(l,a);return{type:n,xAxisProperties:e,yAxisProperties:t,isTimeseriesData:HO(e),dataContainsPercentages:HM(t),isValidChart:e.length>0&&t.length>0}}case"funnel":case"waterfall":{let{xAxisProperties:e,yAxisProperties:t}=HL(l,a);return{type:n,yAxisProperties:t[0]?[t[0]]:[],xAxisProperties:e[0]?[e[0]]:[],isTimeseriesData:HO(e),dataContainsPercentages:HM(t),isValidChart:e.length>0&&t.length>0}}case"pie":case"donut":{let{xAxisProperties:e,yAxisProperties:t}=HL(l,a);return{type:n,labelProperty:e[0],valueProperty:t[0],isTimeseriesData:HO(e),dataContainsPercentages:HM(t),isValidChart:!!(e[0]&&t[0])}}case"scatter":{let e=l[0]?[l[0]]:[],r=[...null!=(t=l.slice(1))?t:[]];return{type:n,xAxisProperties:e,yAxisProperties:r,isTimeseriesData:HO(e),dataContainsPercentages:HM(r),labelProperty:a[0],isValidChart:l.length>=2}}case"bubble":{let e=l[0]?[l[0]]:[],t=l[1]?[l[1]]:[];return{type:n,xAxisProperties:e,yAxisProperties:t,sizeProperty:l[2],isTimeseriesData:HO(e),dataContainsPercentages:HM(t),labelProperty:a[0],isValidChart:l.length>=3}}case"table":return{type:n,columns:o,isTimeseriesData:HO(a),dataContainsPercentages:HM(l),isValidChart:o.length>0}}})({vizType:n,view:r,computedProperties:i}))})(S,{vizType:S.type,view:T.view,computedProperties:M}),[T.view,S,M]),I=(0,O.useMemo)(()=>Hk(p,D,M,T.view),[p,D,M,T.view]),E=(0,O.useMemo)(()=>m9(Object.assign(Object.assign({},L),{colorScheme:k.colorScheme,brandKit:n,vizType:D.type,customPalettes:l}),(e=>{let{chartData:t,computedConfig:n,isCategoricalSingleAxisChart:r}=e;return Math.max(((e,t,n)=>{switch(e.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":return((e,t,n)=>{var r,i;let o=e.yAxisProperties.length,l=null==(r=e.xAxisProperties)?void 0:r[0];if(!l)return o;let a=l.key,s=null==(i=l.dataType)?void 0:i.type;return 1===o&&(dq(s)||d1(s))?1:n?new Set(t.map(e=>{var t;return null!=(t=e[a])?t:null})).size:o})(e,t,n);case"pie":case"donut":return((e,t)=>{var n;let r=null==(n=e.labelProperty)?void 0:n.key;return r?new Set(t.map(e=>{var t;return null!=(t=e[r])?t:null})).size:1})(e,t);case"scatter":case"mekko":case"line":case"areaStacked":case"combo":return e.yAxisProperties.length;default:return 1}})(n,t,r),1)})({computedConfig:D,chartData:I,isCategoricalSingleAxisChart:hE(D)}),hE(D),a),[L,k.colorScheme,n,D,l,I,a]),{fillTypes:H,lineTypes:V}=((e,t)=>{let n=(0,O.useCallback)(n=>HD.includes(e.type)?"waterfall"===e.type?gh.map(e=>{var r,i,o;return null!=(o=null==(i=null==(r=t.seriesConfig)?void 0:r[e])?void 0:i[n])?o:"solid"}):e.yAxisProperties.reduce((e,r,i)=>{var o,l,a;let{isHidden:s}=r;if(s)return e;let u=gp[i];return[...e,null!=(a=null==(l=null==(o=t.seriesConfig)?void 0:o[u])?void 0:l[n])?a:"solid"]},[]):[],[t,e]);return{fillTypes:(0,O.useMemo)(()=>n("fillType"),[n]),lineTypes:(0,O.useMemo)(()=>n("lineType"),[n])}})(D,L),F=E[0],B=(0,O.useMemo)(()=>HT({colorScheme:k.colorScheme,graphBackground:k.values.graphBackground,shouldTintBackground:L.shouldTintBackground,vizColor:F}),[L.shouldTintBackground,F,k.colorScheme,k.values.graphBackground]),z=(0,O.useMemo)(()=>({computedProperties:M,computedDataView:T,computedConfig:D,chartData:I,vizPalette:E,backgroundColor:B,annotations:m,appearance:L,visualisationConfig:x,caption:C,customPalettes:l,customAppearance:y,datasetConfig:h,data:p,titleDocument:b,fillTypes:H,lineTypes:V,parserName:r,numberFormat:f,sourceLabel:v,sourceUrl:j,enableLegacySingleBarColorMode:a,canvasColorToVariableName:s,theme:k}),[M,T,D,I,E,B,m,L,x,C,l,y,h,p,b,H,V,r,f,v,j,a,s,k]),R=gG(z),Y=(0,O.useMemo)(()=>Object.assign(Object.assign({},z),{ref:R}),[R,z]),G=(0,e9.QC)(S.locale);return(0,g.jsx)(SI,{children:(0,g.jsx)(bd,{children:(0,g.jsx)(e4.D,{locale:G,i18nOverrides:c,children:(0,g.jsx)(Hb,{config:d,graphStateRef:R,onChange:i,children:(0,g.jsx)(gF.Provider,{value:Y,children:(0,g.jsx)(mt,{value:A,children:t})})})})})})},HE=h.I4.div(aY()),HH=h.I4.div(aG()),HV=h.I4.div(aW()),HF=(0,h.I4)(ep.P.div)(aU(),sJ.popover),HB=h.I4.div(aN()),Hz=h.I4.div(aK()),HR=h.I4.svg(aZ()),HY=e=>{let{strokeWidth:t,hasRoundedCorners:n,defaultRadius:r}=e;if(!n)return{innerRadius:0,outerRadius:0};let i=r;i>t&&(i=t);let o=Math.max(r,i),l=2*o;return o>t&&(l=o+t),{innerRadius:o,outerRadius:l}},HG=e=>{let{hasRoundedCorners:t,style:n,strokeWidth:r}=e,{innerRadius:i,outerRadius:o}=HY({strokeWidth:r,hasRoundedCorners:t,defaultRadius:8}),l=(0,O.useId)(),{width:a,height:s,setElement:u}=g6(),c=(0,eg.K)(),d=(0,O.useRef)(t),p=d.current!==t;return(0,O.useEffect)(()=>{d.current=t},[t]),(0,g.jsx)(HB,{ref:u,className:p||c?void 0:"transition",children:(0,g.jsxs)(HR,{viewBox:"0 0 ".concat(a," ").concat(s),width:a,height:s,children:[(0,g.jsx)("defs",{children:(0,g.jsx)("mask",{id:l,children:i!==o?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("rect",{x:0,y:0,width:a,height:s,rx:o,fill:"white"}),(0,g.jsx)("rect",{x:r,y:r,width:a-2*r,height:s-2*r,rx:i,fill:"black"})]}):(0,g.jsx)("rect",{x:r/2,y:r/2,width:a-r,height:s-r,strokeWidth:r,stroke:"white",rx:i,fill:"none"})})}),(0,g.jsx)("foreignObject",{x:"0",y:"0",width:a,height:s,mask:"url(#".concat(l,")"),children:(0,g.jsx)(Hz,{style:n})})]})})},HW=(e,t)=>{switch(e.mode){case"fixed":return{width:e.width,height:e.height};case"responsive":return{width:t.width,height:t.height};case"keepAspectRatio":{let t,n;return"aspectRatio"in e?"intrinsicWidth"in e?n=(t=e.intrinsicWidth)/e.aspectRatio:t=(n=e.intrinsicHeight)*e.aspectRatio:(t=e.intrinsicWidth,n=e.intrinsicHeight),{width:t,height:n}}}},HU=h.I4.div(aX(),hK(1)),HN=h.I4.div(aJ(),e=>{let{$hasRoundedCorners:t,$borderStrokeWidth:n=0}=e;return"".concat(HY({strokeWidth:n,hasRoundedCorners:t,defaultRadius:8}).innerRadius,"px")},uA("textPrimary"),e=>{let{$hasCheckeredBackground:t,$backgroundColor:n}=e;return t?(0,h.AH)(a_(),uA("grey100"),m3(2)):(0,h.AH)(aQ(),n)}),HK=h.I4.div(a2(),e=>{let{$textScale:t}=e;return t},e=>{let{$bodyFont:t}=e;return po(t)},e=>{let{$bodyTextColor:t}=e;return null!=t?t:"inherit"},e=>{let{$headingFont:t}=e;return po(t)},e=>{let{$headingTextColor:t}=e;return null!=t?t:"inherit"},hY,HN,HE,HU,e=>{let{$hasRoundedCorners:t,$hasBorder:n,$borderStrokeWidth:r=0}=e;return n&&(0,h.AH)(aq(),Math.max(0,r),t?"hidden":"visible")},e=>{let{$hasBorder:t,$isExport:n,$borderStrokeWidth:r}=e;return t&&!r&&!n&&(0,h.AH)(a$(),HN,uO,uA("grey80"),uT,uA("grey70"))},e=>{let{$appearanceVariant:t,$hasBorder:n}=e;return"active"===t&&(0,h.AH)(a1(),n?"2px":"3px",uA("grey60"))},e=>{let{$isEditable:t}=e;return!t&&(0,h.AH)(a0())},hK(4)),HZ=O.createContext(null),HX=uE(HZ,"VisualisationLayout.Root"),H_=()=>(0,O.useContext)(HZ),HQ={mode:"fixed",width:d6.width,height:d6.height},HJ=(0,O.forwardRef)(function(e,t){var n,r;let{borderStrokeWidth:i=cJ.stroke,borderStyles:o,appearanceVariant:l="default",backgroundColor:a,vizType:s,isEditable:u,children:c,sizing:d=HQ,appearanceTheme:p,appearancePalette:h,textScale:f="1",font:m,onResize:y,isExport:x}=e,b=gz(e=>e.titleDocument),C=null!==o,v=gz(e=>!1!==e.appearance.hasRoundedCorners),j=g6({onResize:y}),{setElement:A}=j,w=s$(j,["setElement"]),k=g3([A,t]),S=me(),{width:P,height:L}=(0,O.useMemo)(()=>HW(d,w),[w,d]),M=(0,O.useMemo)(()=>({width:P,vizType:s,hasGradientBorder:C,borderStrokeWidth:i,isEditable:u,chartHeight:L}),[i,C,L,u,s,P]);return(0,g.jsx)(HZ.Provider,{value:M,children:(0,g.jsxs)(HK,{ref:k,role:"figure","aria-label":OG(b),"data-test-theme":p,"data-test-palette":h,$hasRoundedCorners:v,$borderStrokeWidth:i,$hasBorder:i>0,$appearanceVariant:l,$textScale:f,$bodyFont:null==(n=S.find(e=>{let{id:t}=e;return t===m.body.fontId}))?void 0:n.fontFamily,$headingFont:null==(r=S.find(e=>{let{id:t}=e;return t===m.heading.fontId}))?void 0:r.fontFamily,$bodyTextColor:m.body.color,$headingTextColor:m.heading.color,$isEditable:u,style:"fixed"===d.mode?{width:d.width,height:d.height}:void 0,$isExport:x,children:[(0,g.jsx)(HN,{$borderStrokeWidth:i,$hasRoundedCorners:v,$backgroundColor:a,$hasCheckeredBackground:u&&"transparent"===a,style:{padding:P<500?"1.6em":"2.4em"},children:c}),i>0&&(0,g.jsx)(HG,{style:null!=o?o:void 0,strokeWidth:i,hasRoundedCorners:v})]})})}),Hq=(0,O.forwardRef)(function(e,t){var n,r;let i=(e=>{let t=g6();return(0,O.useMemo)(()=>{if("keepAspectRatio"!==e.mode)return{setContainer:t.setElement,canRender:!1,outerStyles:{},innerStyles:{}};let n=HW(e,{width:0,height:0}),r=t.width>0&&n.width>0?t.width/n.width:1;return{setContainer:t.setElement,canRender:!t.isDefault,outerStyles:Object.assign({width:"100%"},t.isDefault?{aspectRatio:"".concat(n.width," / ").concat(n.height)}:{height:n.height*r}),innerStyles:{transformOrigin:"top left",transform:"scale(".concat(r,")"),width:n.width,height:n.height}}},[e,t.width,t.setElement,t.isDefault])})(null!=(n=e.sizing)?n:HQ);return"keepAspectRatio"===(null==(r=e.sizing)?void 0:r.mode)?(0,g.jsx)("div",{ref:i.setContainer,style:i.outerStyles,children:i.canRender&&(0,g.jsx)("div",{style:i.innerStyles,children:(0,g.jsx)(HJ,Object.assign({},e,{ref:t}))})}):(0,g.jsx)(HJ,Object.assign({},e,{ref:t}))}),H$=e=>{let{children:t}=e;return(0,g.jsx)(HU,{children:t})},H1=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=HX();return{typographyVariant:H0(t.width-(e?2*t.borderStrokeWidth:0))}},H0=e=>e<=260?"titleSmallest":e<=320?"titleSmaller":"titleSmall",H2={Root:Hq,Content:e=>{let{children:t,toolbar:n}=e,{hasFocus:r,focusBindings:i}=gK(),{hasMouseOver:o,mouseOverTargetProps:l}=g$(),a=!!(n&&(o||r)),{chartHeight:s}=HX();return(0,g.jsxs)(HE,Object.assign({},i,l,{style:{height:s},children:[(0,g.jsx)(HH,{children:(0,g.jsx)(HV,{children:t})}),(0,g.jsx)(ef.N,{children:a?(0,g.jsx)(HF,{style:{x:"-50%",y:"-140%"},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15},children:n}):null})]}))}},H5=h.I4.div(a5(),hK(2),hK(2)),H3=h.I4.div(a3(),mN,uA("textSecondary")),H7=h.I4.div(a7(),mX,uA("textDisabled")),H9=e=>{let{isEditable:t,chartData:n,config:r,children:i}=e;return hP(n,r)?(0,g.jsxs)(H5,{children:[(0,g.jsx)(H3,{children:"Cannot render chart: too much data"}),t&&(0,g.jsx)(H7,{children:"Try filtering or grouping the data, using a table visualization or importing a smaller dataset."})]}):H4(n,r)?i:(0,g.jsx)(em.x,{reducedMotion:"always",children:i})},H4=(e,t)=>hL(e,t)<=d8[t.type]/2,H6=function(e,t,n){var r,i;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(o>=10)return n;let l=t.match(/var\(([^,)]+)(?:,\s*(.+))?\)/),a=null==(r=null==l?void 0:l[1])?void 0:r.trim();if(a){let t=null==(i=null==l?void 0:l[2])?void 0:i.trim(),r=getComputedStyle(e||document.documentElement).getPropertyValue(a).trim();return r?H6(e,r,n,o+1):t?H6(e,t,n,o+1):(console.warn('[Graphy] CSS variable "'.concat(a,'" is not defined.')),n)}return t},H8=()=>(()=>{let e=gz(e=>e.vizPalette);return gz(e=>e.computedProperties.numericProperties).map((t,n)=>({property:t,color:e[n%e.length]}))})().map(e=>{var t;let{property:n,color:r}=e;return{label:null!=(t=n.label)?t:n.defaultLabel,value:r}}),Ve=()=>{let e=H8(),{editor:t}=kz(),n=gz(e=>e.caption);if(!(null==t?void 0:t.isEditable)){let e=kN(n);if(!(null==e?void 0:e.trim()))return null}return(0,g.jsx)(kY,{seriesColorOptions:e})},Vt=h.I4.div(a9(),hY,hK(1),uA("textSecondary")),Vn=h.I4.span(a4(),mq),Vr=h.I4.span(a6(),mq),Vi=(0,h.I4)(Vt).attrs({as:"a"})(a8(),Vr,m$),Vo=()=>{let e=gz(e=>e.sourceLabel),t=gz(e=>e.sourceUrl),n=e||(e=>{try{return new URL(e).hostname}catch(t){return e}})(null!=t?t:"");return t?(0,g.jsxs)(Vi,{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,g.jsx)(Vn,{children:"Source:"}),(0,g.jsx)(Vr,{children:n})]}):(0,g.jsxs)(Vt,{children:[(0,g.jsx)(Vn,{children:"Source:"}),(0,g.jsx)(Vr,{children:n})]})},Vl=e=>{let{isEditable:t=!0}=e,n=gz(e=>e.caption),r=gz(e=>e.appearance.shouldHideCaption),i=gz(e=>{var t;return null==(t=e.appearance.shouldHideSourceSection)||t});return(0,g.jsxs)(H$,{children:[i?null:(0,g.jsx)(Vo,{}),r?null:(0,g.jsx)(kR,{placeholder:"Add caption",content:n,isEditable:t,children:(0,g.jsx)(Ve,{})})]})},Va=h.I4.div(sn(),e=>m5[e.$headingVariant],e=>e.$accessoryWidth?e.$accessoryWidth+16:0,e=>e.$hideWhenEmpty?"none":"block",uA("grey90"),e=>{let{$shouldHideTitle:t}=e;return t&&(0,h.AH)(se(),kr)},e=>{let{$shouldHideSubtitle:t}=e;return t&&(0,h.AH)(st(),kr)}),Vs=h.I4.div(sr()),Vu=e=>{var t;let{accessory:n,titleDocument:r,isEditable:i,onChange:o,editorDeps:l}=e,a=g6(),s=H8(),u=gz(e=>e.appearance.shouldHideTitle),c=gz(e=>e.appearance.shouldHideSubtitle),d=H1(),p=OI({isEditable:i,onUpdate:e=>{let t=e.editor.getJSON();null==o||o(t)},content:r},l),{title:h,subtitle:f}=OY(r),m=!(null==h?void 0:h.trim()),y=!(null==f?void 0:f.trim()),x=u||!i&&m,b=c||!i&&y;if(x&&b)return null;let C=null!=(t=a.width)?t:void 0;return(0,g.jsxs)(Va,{$headingVariant:d.typographyVariant,$accessoryWidth:C,$shouldHideTitle:x,$shouldHideSubtitle:b,style:{minHeight:a.height>0?a.height:void 0},children:[(0,g.jsx)(OL,{editor:p,seriesColorOptions:s}),n?(0,g.jsx)(Vs,{ref:a.setElement,children:n}):null]})},Vc=(e,t,n)=>d1(e)?fr(t)-fr(n):dQ(e)?fn(t).localeCompare(fn(n)):dq(e)?fi(t).getTime()-fi(n).getTime():e===gA.Boolean?!0===fo(t)?1:-1:0,Vd=(e,t,n)=>-1*Vc(e,t,n),Vp=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vc,i=e[t];if(!i)throw Error("Cannot find values for variable ".concat(t,"."));let o=[...i.keys()];return o.sort((e,t)=>{let o=i[e],l=i[t];return void 0!==o&&void 0!==l&&null!==o&&null!==l?r(n,o,l):0}),Object.fromEntries(Object.entries(e).map(t=>{let[n,r]=t;return[n,r.map((t,r)=>{var i,l;let a=null!=(i=o[r])?i:-1;return null==(l=e[n])?void 0:l[a]})]}))};class Vh{clone(){let e=new Vh;for(let[t,n]of(s0(e,d,{size:s1(this,d,"f").size,columns:Object.assign({},s1(this,d,"f").columns),values:{}},"f"),Object.entries(s1(this,d,"f").values)))s1(e,d,"f").values[t]=[...n];return e}add(e){let{variableKey:t,type:n,values:r}=e;if(s1(this,d,"f").columns[t])throw Error("Column already exists for variable ".concat(t,"."));return s0(this,d,{size:Math.max(s1(this,d,"f").size,r.length),columns:Object.assign(Object.assign({},s1(this,d,"f").columns),{[t]:{type:n}}),values:Object.assign(Object.assign({},s1(this,d,"f").values),{[t]:r})},"f"),this}appendValues(e,t){if(!s1(this,d,"f").columns[e])throw Error("No column exists for variable ".concat(e,"."));let n=[...this.getValues(e),...t];return s0(this,d,Object.assign(Object.assign({},s1(this,d,"f")),{size:Math.max(s1(this,d,"f").size,n.length),values:Object.assign(Object.assign({},s1(this,d,"f").values),{[e]:n})}),"f"),this}getType(e){let t=s1(this,d,"f").columns[e];if(void 0===t)throw Error("Cannot find column for variable ".concat(e,"."));return t.type}getVariableKeys(){return Object.keys(s1(this,d,"f").columns)}getValues(e){let t=s1(this,d,"f").values[e];if(void 0===t)throw Error("Cannot retrieve values for unknown variable ".concat(e,"."));return t}exists(e){return void 0!==s1(this,d,"f").columns[e]}sortBy(e,t){return s0(this,d,Object.assign(Object.assign({},s1(this,d,"f")),{values:Vp(s1(this,d,"f").values,e,this.getType(e),t)}),"f"),this}[(d=new WeakMap,Symbol.iterator)](){let e=0,t=Object.keys(s1(this,d,"f").values);return{next:()=>{if(e{var r,i;return Object.assign(Object.assign({},t),{[n]:null!=(i=null==(r=s1(this,d,"f").values[n])?void 0:r[e])?i:null})},{});return e++,{value:n,done:!1}}return{value:null,done:!0}}}}constructor(){d.set(this,{size:0,columns:{},values:{}})}}let Vg=()=>new Vh,Vf="value",Vm="label",Vy="highlight",Vx=h.I4.div(si(),mW,uA("textPrimary")),Vb=e=>{var t;let{valueProperty:n,formatter:r,align:i,totalValue:o}=e,l=null!=(t=null==n?void 0:n.key)?t:"__value";return(0,g.jsx)(Vx,{style:{textAlign:i},children:r(o,l).rich})},VC=e=>{let{vizType:t,addons:n=[],annotationsAddonProps:r,backgroundColor:i,chartData:o,font:l,footerContent:a,headlineMetric:s,headlineMetricSize:u,highlightStyle:c,isEditable:d,isInteractive:p=!0,labelProperty:h,legendPosition:f="top",numberFormat:m,plotEffect:y,shouldShowCategoryLabels:x,shouldShowDataLabels:b,showPercentageLabels:C,textScale:v,titleContent:j,totalPosition:A,valueProperty:w,vizPalette:k,pointAnnotationsAddonProps:S}=e,P=(0,O.useMemo)(()=>{var e,t,n;return(e=>{var t,n;let{chartData:r=[],valueProperty:i,labelProperty:o,highlightAnnotations:l,getDataPointId:a}=e,s=i?i.key:"__value",u=o?o.key:"__label",c=null!=(t=null==i?void 0:i.dataType.type)?t:gA.Decimal,d=null!=(n=null==o?void 0:o.dataType.type)?n:gA.Text,p=Vg().add({variableKey:"id",type:gA.Text,values:r.map((e,t)=>pd({rowIndex:t,propertyKey:s}))}).add({variableKey:Vf,type:c,values:r.map(e=>{var t;return i&&null!=(t=e[s])?t:null})}).add({variableKey:Vm,type:d,values:r.map(e=>{var t;return o&&null!=(t=e[u])?t:null})}),h=new Map,g=l.filter(e=>"x-value"===e.config.highlight);return r.forEach((e,t)=>{if(!o||!i)return;let n=e[u];null!=n&&(h.has(n)||h.set(n,!1),g.some(e=>a(e)===pd({rowIndex:t,propertyKey:s}))&&h.set(n,!0))}),p.add({variableKey:Vy,values:r.map(e=>{var t;if(!o)return!1;let n=e[u];return null!=(t=void 0!==n&&h.get(n))&&t}),type:gA.Boolean}),{data:p,aestheticMappings:{id:"id",highlight:Vy,value:Vf,label:Vm,color:Vm}}})({chartData:o,valueProperty:w,labelProperty:h,getDataPointId:null!=(e=null==S?void 0:S.getDataPointId)?e:()=>"",highlightAnnotations:null!=(n=null==(t=null==S?void 0:S.annotations)?void 0:t.filter(e=>"highlight"===e.config.type))?n:[]})},[o,h,w,null==S?void 0:S.annotations,null==S?void 0:S.getDataPointId]),L=(0,O.useMemo)(()=>{if(!w)return 0;let e=w.key;return o.reduce((t,n)=>{var r;try{let i=fr(null!=(r=n[e])?r:0);return t+(null!=i?i:0)}catch(e){return t}},0)},[o,w]),M=(e=>{var t,n;let{valueProperty:r,labelProperty:i,numberFormat:o,totalValue:l,showPercentageLabels:a,shouldShowDataLabels:s,shouldShowCategoryLabels:u}=e,c=(0,Y.A)(),d=null!=(t=null==r?void 0:r.dataType.type)?t:gA.Decimal,p=null!=(n=null==i?void 0:i.dataType.type)?n:gA.Text,h=(null==r?void 0:r.dataType.type)===gA.Currency?r.dataType.iso:void 0,f=(0,O.useCallback)(e=>{let t=IU({intl:c,value:e,formattingType:d,currency:h,numberFormat:o});return{plain:t,rich:t}},[c,d,h,o]);return{formatPieValue:f,formatPieLabel:(0,O.useCallback)(e=>{let t=IU({intl:c,value:e,formattingType:p,numberFormat:o});return{plain:t,rich:t}},[c,p,o]),formatDataLabel:(0,O.useCallback)((e,t)=>{let n=[];return u&&n.push(IU({intl:c,value:t,formattingType:p,numberFormat:o})),s&&n.push(a?fO({intl:c,value:e/l,numberFormat:o}):IU({intl:c,value:e,formattingType:d,currency:h,numberFormat:o})),2===n.length&&n.splice(1,0,"\xb7"),{plain:n.join(" "),rich:n.map((e,t)=>(0,g.jsx)("span",{children:String(e)},t))}},[u,s,c,p,o,a,l,d,h]),formatMetric:(0,O.useCallback)(e=>{let t=IU({intl:c,value:e,formattingType:d,currency:h,numberFormat:o});return{plain:t,rich:t}},[c,d,h,o]),formatSeriesLabel:(0,O.useCallback)(e=>{let t=IU({intl:c,value:e,formattingType:p,numberFormat:o});return{plain:t,rich:t}},[c,p,o]),formatLegendValue:(0,O.useCallback)(e=>{let t=fO({intl:c,value:("number"==typeof e?fr(e):0)/l,numberFormat:o});return{plain:t,rich:t}},[c,o,l])}})({valueProperty:w,labelProperty:h,numberFormat:m,totalValue:L,showPercentageLabels:C,shouldShowDataLabels:b,shouldShowCategoryLabels:x}),T=Vv({pointAnnotationsAddonProps:S,annotationsAddonProps:r,isInteractive:p,isEditable:d,formatters:M,highlightStyle:c,shouldShowDataLabels:b,shouldShowCategoryLabels:x,disableTooltips:gz(e=>e.appearance.disableTooltips)}),{aestheticMappings:D,data:I}=P,{value:E}=D,H="left"===A||"center"===A&&"pie"===t,V=A?(0,g.jsx)(Vb,{valueProperty:w,totalValue:L,formatter:M.formatMetric,align:A}):null;return(0,g.jsx)(IP,{vizType:t,data:I,aestheticMappings:D,vizPalette:k,textScale:v,font:l,plot:(0,g.jsx)(Tq,{vizType:t,value:E,plotEffect:y,backgroundColor:i}),centerContent:"center"!==A||H?null:V,formatDataLabel:M.formatDataLabel,formatSeriesLabel:M.formatSeriesLabel,rightLegend:"right"===f?(0,g.jsx)(Ex,Object.assign({},P,{vizType:t,direction:"vertical",align:"start",justify:"center",formatSeriesLabel:M.formatSeriesLabel,formatLegendValue:M.formatLegendValue,shouldShowValues:!0})):null,legendPosition:f,shouldShowLabels:b||x,chartSummary:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(E$,Object.assign({metricSize:u,stat:s,formatMetric:M.formatMetric,formatSeriesLabel:M.formatSeriesLabel,formatLegendValue:M.formatLegendValue,highlightStyle:c,backgroundColor:i,shouldShowTopLegend:"top"===f,vizType:t},P)),H?V:null]}),titleContent:j,footerContent:a,addons:[...n,...T],valueLabel:null==w?void 0:w.label,getDataPointId:e=>String(e.id)})},Vv=e=>{var t;let{pointAnnotationsAddonProps:n,annotationsAddonProps:r,isInteractive:i,isEditable:o,formatters:l,highlightStyle:a,shouldShowDataLabels:s,shouldShowCategoryLabels:u,disableTooltips:c}=e,d=[],p=null!=(t=null==n?void 0:n.annotations)?t:[];return i&&!c&&d.push(SP(Object.assign(Object.assign({},l),{annotations:p,highlightStyle:a}))),n&&d.push(Tf(Object.assign(Object.assign({},n),{tooltipOptions:Object.assign(Object.assign({},l),{highlightStyle:a,annotations:p}),isEditable:o}))),(s||u)&&d.push({id:"data-labels",render:()=>(0,g.jsx)(Tm,{})}),r&&d.push(O3(r)),d},Vj=e=>{let{chartData:t,columns:n,numberFormat:r,titleContent:i,footerContent:o}=e,l=(e=>{let{numberFormat:t}=e,n=(0,Y.A)();return e=>{let r=e.dataType.type,i=e.dataType.type===gA.Currency?e.dataType.iso:void 0;return{formattingType:r,currencyIso:i,formatTableValue(e){let o=IU({intl:n,value:e,formattingType:r,currency:i,numberFormat:t});return{plain:o,rich:o}}}}})({numberFormat:r});return(0,g.jsx)(IG,{titleContent:i,footerContent:o,columns:n.map((e,t)=>{let{formattingType:n,currencyIso:r,formatTableValue:i}=l(e);return{title:e.label||"Column ".concat(t+1),getCellValue:t=>{var n;return null!=(n=t[e.key])?n:null},formattingType:n,currencyIso:r,formatValue:i}}),data:t})},VA=e=>(null==e?void 0:e.trim())?e:"Goal",Vw=h.I4.svg(so()),Vk=h.I4.rect(sl(),uA("targetLineColor")),VS=h.I4.path(sa(),uA("targetLineColor")),VP=h.I4.text(ss(),sm,uA("grey100")),VL=h.I4.circle(su(),uA("targetLineMarkerColor")),VM=e=>{let{vizType:t,xGoalValue:n,yGoalValue:r,formatXGoalValue:i,formatYGoalValue:o,customGoalLineLabel:l}=e,{xType:a,flipAxes:s}=SM(),u=yV(),c=VO({xGoalValue:n,yGoalValue:r,formatXGoalValue:i,formatYGoalValue:o,xType:a,customGoalLineLabel:l}),{width:d}=(0,O.useMemo)(()=>u((0,g.jsx)(VP,{children:c})),[c,u]),{isVisible:p,labelContainerPosition:h,labelPosition:f,labelBackgroundDimensions:m,visualCuesContainerPosition:y,arrowDimensions:x,markerDimensions:b,gradientDimensions:C}=(e=>{let{xGoalValue:t,yGoalValue:n,labelWidth:r}=e,{getXAxisPosition:i,getYAxisPosition:o,isBandScale:l,flipAxes:a}=SM(),s=mr("textScale"),u=x$("plotWidth"),c=x$("plotHeight"),d=a?c:u,p=a?u:c,h=(0,O.useMemo)(()=>i(l?yg(t):t),[i,l,t]),g=(0,O.useMemo)(()=>o(n),[o,n]),f=-11.7*s-7-8;return{isVisible:null!==h&&h>=0&&h<=d&&null!==g&&g>=0&&g<=p,labelContainerPosition:{[a?"y":"x"]:Math.min(Math.max(null!=h?h:0,r/2+5-9),d-r/2-5+9),[a?"x":"y"]:g},labelPosition:{x:0,y:f},labelBackgroundDimensions:{x:-r/2-5,y:f-11.7*s/2-5,width:r+10,height:11.7*s+10},visualCuesContainerPosition:{[a?"y":"x"]:h,[a?"x":"y"]:g},arrowDimensions:{x:-94,y:f+8,width:133,height:6},markerDimensions:{cx:0,cy:0,r:4},gradientDimensions:{x:a?-(null!=g?g:0):-7,y:-7,width:a?Math.abs(null!=g?g:0)+7:14,height:a?14:Math.abs(p-(null!=g?g:0))+7,rx:7}}})({xGoalValue:n,yGoalValue:r,labelWidth:d}),v=window.btoa("goal-line-gradient-".concat((0,O.useId)())),j="goal-label-arrow-".concat((0,O.useId)());return p&&"combo"!==t?(0,g.jsxs)(Vw,{width:"100%",height:"100%",children:[(0,g.jsxs)("defs",{children:[(0,g.jsxs)("linearGradient",{id:v,x1:"7",y1:"0",x2:"7",y2:"185",gradientUnits:"userSpaceOnUse",gradientTransform:s?"rotate(90 0.5 0.5)":"",children:[(0,g.jsx)("stop",{stopColor:"#7D738C",stopOpacity:"0.13"}),(0,g.jsx)("stop",{offset:s?"0.7":"0.4",stopColor:"#B0AABA",stopOpacity:"0.1"}),(0,g.jsx)("stop",{offset:s?"0.8":"0.65",stopColor:"#C6C2CD",stopOpacity:"0.08"}),(0,g.jsx)("stop",{offset:s?"0.9":"0.8",stopColor:"#D5D2DA",stopOpacity:"0.06"}),(0,g.jsx)("stop",{offset:"1",stopColor:"#E5E3E8",stopOpacity:"0"})]}),(0,g.jsx)("clipPath",{id:j,children:(0,g.jsx)("path",{fill:"#fff",d:"M0 0h113v6H0z"})})]}),(0,g.jsxs)(ep.P.g,{initial:!1,animate:Object.assign({opacity:+!!p},h),transition:f_,children:[(0,g.jsx)(Vk,Object.assign({},m,{rx:6})),(0,g.jsx)(VP,Object.assign({},f,{textAnchor:"middle",dominantBaseline:"central",children:c}))]}),(0,g.jsxs)(ep.P.g,{initial:!1,animate:Object.assign({opacity:+!!p},y),transition:f_,children:[(0,g.jsx)("svg",Object.assign({},x,{fill:"none",children:(0,g.jsx)("g",{clipPath:"url(#".concat(j,")"),children:(0,g.jsx)(VS,{d:"m88 0 5.13 5.117a1.25 1.25 0 0 0 1.767-.002L100 0H88Z"})})})),(0,g.jsx)(VL,Object.assign({},b)),(0,g.jsx)("rect",Object.assign({},C,{fill:"url(#".concat(v,")")}))]})]}):null},VO=e=>{let{xGoalValue:t,yGoalValue:n,formatXGoalValue:r=ug,formatYGoalValue:i=ug,xType:o,customGoalLineLabel:l}=e;return"".concat(VA(l),": ").concat(i(n).rich).concat(dq(o)?" by ".concat(r(t).rich):"")},VT=e=>{let{vizType:t,yGoalValue:n,formatYGoalValue:r=ug,customGoalLineLabel:i}=e,{getYAxisPosition:o,getSecondaryYAxisPosition:l,hasSecondaryAxis:a}=SM(),s="combo"===t&&a?l:o,u=(0,O.useMemo)(()=>s(n),[s,n]),c=(0,O.useMemo)(()=>"".concat(VA(i),": ").concat(r(n).rich),[i,r,n]);return(0,g.jsx)(E9,{formattedLabel:c,yPosition:u})},VD={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:f_},VI=e=>{var{vizType:t,xGoalValue:n,yGoalValue:r,customGoalLineLabel:i}=e,o=s$(e,["vizType","xGoalValue","yGoalValue","customGoalLineLabel"]);let{xType:l}=SM();return(0,g.jsx)(ef.N,{children:yJ(l,n)&&yq(r)?(0,g.jsx)(ep.P.g,Object.assign({},VD,{children:(0,g.jsx)(VM,Object.assign({vizType:t,xGoalValue:n,yGoalValue:r,customGoalLineLabel:i},o))}),"xy"):yq(r)?(0,g.jsx)(ep.P.g,Object.assign({},VD,{children:(0,g.jsx)(VT,Object.assign({vizType:t,yGoalValue:r,customGoalLineLabel:i},o))}),"y"):null})},VE=h.I4.svg(sc(),f6.trendLines),VH=(0,et.A)().x(e=>{let[t]=e;return t}).y(e=>{let[,t]=e;return t}),VV=e=>{let{observations:t,trendType:n,isSecondaryYAxis:r,isDimmed:i,highlightStyle:o,backgroundColor:l,strokeWidth:a=2,flipAxes:s,plotEffect:u}=e,c=ma(),{neonFilter:d,renderDefs:p}=S0({blur:3}),{getColor:h}=xY(),{getNonResponsiveXPosition:f,getNonResponsiveYPosition:m,getNonResponsiveSecondaryYAxisPosition:y}=SM(),x=r?y:m,b=(0,O.useMemo)(()=>t.map(e=>{let t=[f(e),x(e)];return s&&t.reverse(),t}),[s,f,x,t]),C=(0,O.useMemo)(()=>VH(((e,t,n)=>{let r=[0,n];switch(e){case"linear":return(0,tl.regressionLinear)().domain(r)(t);case"exponential":return(0,tl.regressionExp)().domain(r)(t.filter(e=>{let[,t]=e;return t>0}));case"logarithmic":return(0,tl.regressionLog)().domain([.01,n])(t.filter(e=>{let[t]=e;return t>0}));case"quadratic":return(0,tl.regressionQuad)().domain(r)(t);case"polynomial":return(0,tl.regressionPoly)().domain(r)(t);case"power":return(0,tl.regressionPow)().domain([.01,n])(t.filter(e=>{let[t,n]=e;return t>0&&n>0}));case"loess":return(0,tl.regressionLoess)()(t)}})(n,b,300)),[b,n]);if(!C)return null;let[v]=t;if(!v)return null;let j={d:C,stroke:xa({theme:c,color:h(v),isDimmed:i,highlightStyle:o,backgroundColor:l}),fill:"none",strokeDasharray:"".concat(4*a," ").concat(3*a),strokeLinecap:"butt",strokeLinejoin:"round",style:{pointerEvents:"none"},vectorEffect:"non-scaling-stroke"};return(0,g.jsxs)(g.Fragment,{children:["neon"===u&&p(),"neon"===u&&(0,g.jsx)("path",Object.assign({},j,{strokeWidth:2*a,filter:d})),(0,g.jsx)("path",Object.assign({},j,{strokeWidth:a}))]})},VF=e=>{let{type:t,highlightStyle:n,backgroundColor:r,group:i=[],comboPlotAxisCount:o,plotEffect:l,lineThickness:a}=e,s=x$("plotWidth"),u=x$("plotHeight"),c=x$("plotOffsetX"),d=x$("plotOffsetY"),p=mr("isPlotMeasured"),{flipAxes:h,hasSecondaryAxis:f}=SM(),{visibleObservations:m}=Pl(),{chartHasHighlight:y}=yM(),{partitionKeys:x,partitionsMap:b}=(0,O.useMemo)(()=>yW({observations:m,group:i}),[m,i]),{secondaryDomainKey:C}=y$(x,o);return p?(0,g.jsx)(VE,{viewBox:"0 0 300 300",preserveAspectRatio:"none",width:s,height:u,style:{left:c,top:d,overflow:"hidden"},children:x.map(e=>{var i;let o=null!=(i=b.get(e))?i:[];return(0,g.jsx)(ep.P.g,{initial:{opacity:0},animate:{opacity:1},transition:f_,children:(0,g.jsx)(VV,{observations:o,trendType:t,isSecondaryYAxis:f&&e===C,isDimmed:y,flipAxes:h,highlightStyle:n,backgroundColor:r,strokeWidth:a,plotEffect:l})},e)})}):null},VB={hasGridLines:!0,shouldShowDataLabels:!0,shouldStartFromZero:!0,customYAxisStartFrom:null,customYAxisEndAt:null,useLogScale:!1,showPercentageLabels:!1,showStackTotals:!1,hideCrossAxis:!1,hideMainAxis:!1,sortBars:!1,legendPosition:"top",comboPlotAxisCount:"double"},Vz="__ID__",VR="__METRIC_NAME__",VY="__METRIC_VALUE__",VG="__HIGHLIGHT__",VW="__HIGHLIGHT_GROUP__",VU="__X_STACK_LOWER__",VN="__X_STACK_UPPER__",VK="__Y_STACK_LOWER__",VZ="__Y_STACK_UPPER__",VX="__Y_STACK_PERCENTAGE__",V_="#@graphy@#",VQ=new RegExp("^\\d+".concat(V_)),VJ=[VY,Vz,VG,VW,VZ,VU,VN,VK,VX],Vq=e=>"string"!=typeof e?e:ym(e.replace(VQ,"")),V$=e=>{let{formattingType:t,intl:n,value:r,currency:i,numberFormat:o}=e;switch(t){case gA.Boolean:return fa({value:r});case gA.Currency:return fm({intl:n,value:r,currency:i,numberFormat:o});case gA.Date:return fb({intl:n,value:r});case gA.Datetime:return fx({intl:n,value:r});case gA.Year:return fH({intl:n,value:r});case gA.Quarter:return fT({value:r});case gA.MonthYear:return fM({intl:n,value:r});case gA.Month:return fL({intl:n,value:r});case gA.DayMonth:return fC({intl:n,value:r});case gA.WeeklyDateRange:return fI({intl:n,value:r});case gA.WeeklyDateRangeWithYear:return fE({intl:n,value:r});case gA.Decimal:return fv({intl:n,value:r,numberFormat:o});case gA.Duration:return fS({value:r});case gA.Integer:return fP({intl:n,value:r});case gA.Percentage:return fO({intl:n,value:r,numberFormat:o});case gA.Text:return fD({value:r})}},V1=e=>{let{formattingType:t,intl:n,value:r,tickValues:i,currency:o,cadence:l}=e;if(l)return V1(Object.assign(Object.assign({},e),{cadence:void 0,formattingType:((e,t)=>{let{cadence:n}=e,r=!d$(t);switch(n){case"daily":return gA.Date;case"monthly":return r?gA.MonthYear:gA.Month;case"quarterly":return gA.Quarter;case"weekly":return r?gA.WeeklyDateRangeWithYear:gA.WeeklyDateRange;case"yearly":return r?gA.Year:gA.Month;default:return t}})(l,t)}));switch(t){case gA.Boolean:return fs({value:r});case gA.Currency:return fg({intl:n,value:r,tickValues:i,currency:o});case gA.Date:case gA.Datetime:return fV({intl:n,value:r,cadence:l});case gA.Year:return fH({intl:n,value:r});case gA.Quarter:return fT({value:r});case gA.MonthYear:return fM({intl:n,value:r});case gA.Month:return fR({intl:n,value:r});case gA.DayMonth:case gA.WeeklyDateRange:case gA.WeeklyDateRangeWithYear:return fF({intl:n,value:r});case gA.Decimal:return fh({intl:n,value:r,tickValues:i});case gA.Duration:return fB({value:r});case gA.Integer:return fz({intl:n,value:r,tickValues:i});case gA.Percentage:return fY({intl:n,value:r,tickValues:i});case gA.Text:return fG({value:r})}},V0=e=>{let{yAxisProperties:t}=e;return[...new Set(t.map(e=>e.dataType.type))].length>=2||!t[0]?{formattingType:gA.Decimal}:{formattingType:t[0].dataType.type,currency:t[0].dataType.type===gA.Currency?t[0].dataType.iso:void 0}},V2=(e,t)=>e.map(e=>{var n;return null!=(n=e[t])?n:null}),V5=e=>{var t,n,r;let{vizType:i,xAxisProperties:o,yAxisProperties:l,mappings:a,seriesConfig:s,enableLegacySingleBarColorMode:u}=e;if(![...dh,...dg].includes(i)||1!==l.length||1!==o.length)return;let c=null==(n=null==(t=o[0])?void 0:t.dataType)?void 0:n.type,d=c&&!dq(c)&&!d1(c);if(!d)return;let p=!!s&&Object.values(s).filter(e=>!!(null==e?void 0:e.color)).length>1;d&&(!u||p)&&(a.color=null==(r=o[0])?void 0:r.key)},V3=e=>{let{mappings:t}=e;return Object.assign(Object.assign({},t),{cluster:[t.x]})},V7=e=>{let[t]=e;return t?{id:Vz,x:t.key,y:VR,yValue:VY,alpha:VY}:{id:Vz,x:VR,y:VY,yValue:VY}},V9=e=>{let{addons:t=[],pointAnnotationsAddonProps:n,annotationsAddonProps:r,chartData:i,curveType:o,isEditable:l=!1,isInteractive:a=!0,reverseCrossAxisPosition:s,onTopAxisLabelChange:u,onBottomAxisLabelChange:c,onRightAxisLabelChange:d,onLeftAxisLabelChange:p,trendType:h,xGoalValue:f,yGoalValue:m,customGoalLineLabel:y,vizPalette:x,fillTypeRange:b,lineTypeRange:C,vizType:v,xAxisProperties:j,yAxisProperties:A,sizeProperty:w,headlineMetric:k,headlineMetricComparisonValue:S,headlineMetricSize:P,averageLineSeriesKey:M,locale:T,plotEffect:D,highlightStyle:I,backgroundColor:E,lineThickness:H,pointSize:V,textScale:F,font:B,numberFormat:R,treatEmptyValues:G,titleContent:W,footerContent:U,hasGridLines:N,shouldStartFromZero:K,showPoints:Z,comboPlotType:X,comboPlotAxisCount:_,customYAxisEndAt:Q,customYAxisStartFrom:J,hideCrossAxis:q,hideMainAxis:$,legendPosition:ee,showPercentageLabels:et,showStackTotals:en,sortBars:er,useLogScale:ei,shouldShowDataLabels:eo,flipAxes:el,topAxisLabel:ea,rightAxisLabel:es,bottomAxisLabel:eu,leftAxisLabel:ec,labelProperty:ed}=e,ep=Object.assign(Object.assign({},VB),{hasGridLines:N,shouldStartFromZero:K,comboPlotAxisCount:_,customYAxisEndAt:Q,customYAxisStartFrom:J,hideCrossAxis:q,hideMainAxis:$,legendPosition:ee,showPercentageLabels:et,showStackTotals:en,sortBars:er,useLogScale:ei,shouldShowDataLabels:eo}),eh=gz(e=>e.appearance.seriesConfig),{topAxisLabel:eg,bottomAxisLabel:ef,leftAxisLabel:em,rightAxisLabel:ey}=(e=>{let{vizType:t,xAxisProperties:n,yAxisProperties:r,customTopAxisLabel:i=null,customBottomAxisLabel:o=null,customLeftAxisLabel:l=null,customRightAxisLabel:a=null}=e;return{leftAxisLabel:(0,O.useMemo)(()=>{var e,n;return null!==l?l:"combo"!==t||r.length<2?"":null!=(n=null==(e=r[r.length-1])?void 0:e.label)?n:""},[l,t,r]),rightAxisLabel:(0,O.useMemo)(()=>{var e,n;return null!==a?a:("funnel"===t||r.length<=1||"combo"===t&&r.length<=2)&&null!=(n=null==(e=r[0])?void 0:e.label)?n:""},[a,t,r]),bottomAxisLabel:(0,O.useMemo)(()=>{var e,t;return null!==o?o:null!=(t=null==(e=n[0])?void 0:e.label)?t:""},[o,n]),topAxisLabel:(0,O.useMemo)(()=>{var e,t;return null!==i?i:null!=(t=null==(e=n[0])?void 0:e.label)?t:""},[i,n])}})({vizType:v,xAxisProperties:j,yAxisProperties:A,customTopAxisLabel:ea,customBottomAxisLabel:eu,customLeftAxisLabel:ec,customRightAxisLabel:es}),ex="funnel"===v||[...dh,...dg].includes(v)&&(null==ep?void 0:ep.sortBars),{aestheticMappings:eb,data:eC}=(0,O.useMemo)(()=>{var e,t,r;return(e=>{var t,n,{chartData:r,vizType:i,xAxisProperties:o,yAxisProperties:l,sizeProperty:a,labelProperty:s,shouldSortBars:u,highlightAnnotations:c,treatEmptyValues:d,seriesConfig:p,enableLegacySingleBarColorMode:h}=e,g=s$(e,["chartData","vizType","xAxisProperties","yAxisProperties","sizeProperty","labelProperty","shouldSortBars","highlightAnnotations","treatEmptyValues","seriesConfig","enableLegacySingleBarColorMode"]);let f=(e=>{let{data:t,idColumns:n,measureColumns:r,key:i="Key",value:o="Value",observationId:l="Id",treatEmptyValues:a,yStackType:s="total"}=e,u=0;return t.flatMap((e,t)=>{let c=Object.entries(e).filter(e=>{let[t]=e;return r.includes(t)});"fill"===a?c=c.filter(e=>{let[,t]=e;return null!=t}):"zero"===a&&(c=c.map(e=>{let[t,n]=e;return[t,null!=n?n:0]}));let d=(0,L.A)(e,n),p=c.reduce((e,t)=>{let[,n]=t;return"number"==typeof n?e+n:e},0),h=u,g=h+p;return u=g,c.map(e=>{let[n,r]=e,a=(e=>{let{measureColumn:t,measureEntries:n,yStackType:r,stackTotal:i}=e,o=0,l=0;for(let[e,r]of n){if("number"!=typeof r)return{lower:0,upper:0,percentage:0};if(o=l,l+=r,t===e)break;o=l}return{lower:"percentage"===r?o/i:o,upper:"percentage"===r?l/i:l,percentage:(l-o)/i}})({measureColumn:n,measureEntries:c,yStackType:s,stackTotal:p});return Object.assign(Object.assign({},d),{[l]:pd({rowIndex:t,propertyKey:n}),[i]:n,[o]:r,[VU]:h,[VN]:g,[VK]:a.lower,[VZ]:a.upper,[VX]:a.percentage})})})})({data:r,idColumns:[...o.map(e=>{let{key:t}=e;return t}),null!=(t=null==a?void 0:a.key)?t:"",null!=(n=null==s?void 0:s.key)?n:""].filter(Boolean),measureColumns:l.map(e=>{let{key:t}=e;return t}),key:VR,value:VY,observationId:Vz,treatEmptyValues:d,yStackType:["barStackedFill","columnStackedFill","mekko"].includes(i)?"percentage":"total"}),m=(e=>{var t;let{vizType:n,reshapedData:r,yAxisProperties:i,xAxisProperties:o,sizeProperty:l,labelProperty:a,getDataPointId:s,highlightAnnotations:u}=e,{formattingType:c}=V0({yAxisProperties:i}),d=((e,t)=>{let[n]=t;if(!n||!dQ(n.dataType.type))return e;let r={};return e.map(e=>{var t;let n="";for(let[t,r]of Object.entries(e))VJ.includes(t)||(n="".concat(n).concat(yg(r)));return n in r?(r[n]=(null!=(t=r[n])?t:0)+1,Object.entries(e).reduce((e,t)=>{let i,[o,l]=t;return o===VR||VJ.includes(o)?Object.assign(Object.assign({},e),{[o]:l}):Object.assign(Object.assign({},e),{[o]:(i=r[n],"".concat(i).concat(V_).concat(yg(l)))})},{})):(r[n]=0,e)})})(r,o),p=Vg(),h="waterfall"===n&&d.length>0&&(null==(t=i[0])?void 0:t.key)!==Ha;for(let e of(p.add({variableKey:Vz,values:[...V2(d,Vz),...h?[pc]:[]],type:gA.Text}),p.add({variableKey:VR,values:V2(d,VR),type:gA.Text}),p.add({variableKey:VY,values:V2(d,VY),type:c}),p.add({variableKey:VK,values:V2(d,VK),type:gA.Decimal}),p.add({variableKey:VZ,values:V2(d,VZ),type:gA.Decimal}),p.add({variableKey:VX,values:V2(d,VX),type:gA.Decimal}),p.add({variableKey:VU,values:V2(d,VU),type:gA.Decimal}),p.add({variableKey:VN,values:V2(d,VN),type:gA.Decimal}),l&&p.add({variableKey:l.key,values:V2(d,l.key),type:l.dataType.type}),a&&p.add({variableKey:a.key,values:V2(d,a.key),type:gA.Text}),o))p.add({variableKey:e.key,values:V2(d,e.key),type:e.dataType.type});return(e=>{let{dataFrame:t,reshapedData:n,highlightAnnotations:r,getDataPointId:i,xAxisProperty:o,isWaterfallSupported:l}=e,a=new Map,s=r.filter(e=>"x-value"===e.config.highlight);for(let e of n){if(!o)continue;let t=e[o.key];null!=t&&(a.has(t)||a.set(t,!1),s.some(t=>Vz in e&&i(t)===e[Vz])&&a.set(t,!0))}let u=r.some(e=>e.propertyKey===pc);t.add({variableKey:VG,values:[...n.map(e=>{var t;if(!o)return null;let n=r.filter(e=>"data-point"===e.config.highlight).some(t=>Vz in e&&i(t)===e[Vz]),l=e[o.key],s=null!=(t=void 0!==l&&a.get(l))&&t;return n||s}),...l?[u]:[]],type:gA.Boolean}),t.add({variableKey:VW,values:[...n.map(e=>r.filter(e=>"series"===e.config.highlight).some(t=>Vz in e&&i(t)===e[Vz])),...l?[!1]:[]],type:gA.Boolean})})({dataFrame:p,reshapedData:d,highlightAnnotations:u,getDataPointId:s,xAxisProperty:o[0],isWaterfallSupported:h}),p})(Object.assign({vizType:i,reshapedData:f,labelProperty:s,xAxisProperties:o,yAxisProperties:l,sizeProperty:a,highlightAnnotations:c},g)),y=(e=>{var t;let{xAxisProperties:n,yAxisProperties:r,sizeProperty:i,labelProperty:o,vizType:l,highlightAnnotations:a,seriesConfig:s,enableLegacySingleBarColorMode:u}=e;if("heatmap"===l)return V7(n);let[c]=n,d="areaStacked"===l,p={id:Vz,x:null!=(t=null==c?void 0:c.key)?t:VY,y:d?VZ:VY,size:null==i?void 0:i.key,yValue:VY,group:[{variableKey:VR}],label:null==o?void 0:o.key,color:VR,fillType:VR,lineType:VR,highlight:VG,highlightGroup:VW,xStackLower:VU,xStackUpper:VN,yStackLower:VK,yStackUpper:VZ,yStackPercentage:VX};return"combo"===l?V3({mappings:p}):(V5({vizType:l,xAxisProperties:n,yAxisProperties:r,mappings:p,seriesConfig:s,enableLegacySingleBarColorMode:u}),p)})({xAxisProperties:o,yAxisProperties:l,sizeProperty:a,labelProperty:s,vizType:i,highlightAnnotations:c,seriesConfig:p}),x=[...dh,...dg,"line","areaStacked","combo"].includes(i);return(dq(m.getType(y.x))||d1(m.getType(y.x)))&&x&&m.sortBy(y.x,Vc),u&&m.sortBy(VY,Vd),{data:m,aestheticMappings:y}})({chartData:i,vizType:v,yAxisProperties:A,xAxisProperties:j,sizeProperty:w,labelProperty:ed,shouldSortBars:ex,getDataPointId:null!=(e=null==n?void 0:n.getDataPointId)?e:()=>"",highlightAnnotations:null!=(r=null==(t=null==n?void 0:n.annotations)?void 0:t.filter(e=>"highlight"===e.config.type))?r:[],treatEmptyValues:G,seriesConfig:eh,enableLegacySingleBarColorMode:!0})},[null==n?void 0:n.getDataPointId,null==n?void 0:n.annotations,i,v,A,j,w,ed,ex,G,eh]),{x:ev}=eb,ej=eC.getType(ev),eA=Fo(ej,f,T),ew=(e=>{let{xAxisProperties:[t,n],yAxisProperties:r,sizeProperty:i,labelProperty:o,vizType:l,numberFormat:a,comboPlotAxisCount:s}=e,u=(0,Y.A)(),c="combo"===l&&r.length>=2&&"double"===s,d=(0,O.useCallback)(e=>{let t=r.find(t=>{let{key:n}=t;return n===e}),n=r.findIndex(t=>{let{key:n}=t;return n===e});return(null==t?void 0:t.label)?{rich:String(t.label),plain:String(t.label)}:t?((e,t)=>{let n=(e=>"heatmap"===e?"Row":"line"===e||[...dh,...dg,"combo"].includes(e)?"Series":"Column")(t),r="".concat(n," ").concat(e+1);return{rich:r,plain:r}})(n,l):{rich:String(e),plain:String(e)}},[r,l]),p=(0,O.useCallback)((e,n,r,i)=>{if(!t)return d(e);let o=t.dataType,l=V1({intl:u,value:dQ(o.type)?Vq(e):e,tickValues:n,formattingType:o.type,currency:o.type===gA.Currency?o.iso:void 0,cadence:i});return{plain:l,rich:l}},[t,d,u]),h=(0,O.useCallback)((e,t)=>{if("heatmap"===l)return d(e);let n=V1(Object.assign({intl:u,value:e,tickValues:t},V0({yAxisProperties:r.slice(-1)})));return{plain:n,rich:n}},[d,u,l,r]),g=(0,O.useCallback)((e,t)=>{if("heatmap"===l)return d(e);let n=["barStackedFill","columnStackedFill","mekko"].includes(l)?fY({intl:u,value:e,tickValues:t}):V1(Object.assign({intl:u,value:e,tickValues:t},V0({yAxisProperties:c?r.slice(0,-1):r})));return{plain:n,rich:n}},[d,u,c,l,r]),f=(0,O.useCallback)(e=>{if(!t)return d(e);let n=t.dataType,r=IU({intl:u,value:dQ(n.type)?Vq(e):e,formattingType:n.type,currency:n.type===gA.Currency?n.iso:void 0,numberFormat:a});return{plain:r,rich:r}},[t,d,u,a]),m=(0,O.useCallback)((e,t)=>{var n;if("heatmap"===l)return d(e);if(c){let i=IU(Object.assign({intl:u,numberFormat:a,value:e},V0({yAxisProperties:yC(t)&&(null==(n=r[r.length-1])?void 0:n.key)===t.groupValues[0]?r.slice(-1):r.slice(0,-1)})));return{plain:i,rich:i}}let i=IU(Object.assign(Object.assign({intl:u,value:e},V0({yAxisProperties:r})),{numberFormat:a}));return{plain:i,rich:i}},[d,u,c,l,r,a]),y=(0,O.useCallback)(e=>{if(!n)return d(e);let t=n.dataType,r=IU({intl:u,value:e,formattingType:t.type,currency:t.type===gA.Currency?t.iso:void 0,numberFormat:a});return{plain:r,rich:r}},[d,u,n,a]),x=(0,O.useCallback)((e,t)=>{if(!o)return y(e,t);let n=V$({intl:u,value:e,numberFormat:a,formattingType:o.dataType.type});return{plain:n,rich:n}},[y,u,o,a]),b=(0,O.useCallback)(e=>{let t=IU(Object.assign({intl:u,value:e,numberFormat:a},V0({yAxisProperties:r})));return{plain:t,rich:t}},[u,r,a]),C=(0,O.useCallback)(e=>{let t=fD({value:e});return{plain:t,rich:t}},[]),v=(0,O.useCallback)(e=>{var t;let n=r.at(c?-1:0),i=IU({intl:u,value:e,formattingType:null!=(t=null==n?void 0:n.dataType.type)?t:gA.Decimal,currency:(null==n?void 0:n.dataType.type)===gA.Currency?n.dataType.iso:void 0,numberFormat:a});return{plain:i,rich:i}},[u,c,r,a]),j=(0,O.useCallback)(e=>{let t=IU(Object.assign({intl:u,value:e,numberFormat:a},V0({yAxisProperties:r})));return{plain:t,rich:t}},[u,r,a]),A=(0,O.useCallback)((e,t)=>{var n;if(c){let i=IU(Object.assign({intl:u,value:e,numberFormat:a},V0({yAxisProperties:yC(t)&&(null==(n=r[r.length-1])?void 0:n.key)===t.groupValues[0]?r.slice(-1):r.slice(0,-1)})));return{plain:i,rich:i}}let i=IU(Object.assign({intl:u,numberFormat:a,value:e},V0({yAxisProperties:r})));return yv(t)&&"positive"===t.waterfallType?{plain:"+".concat(i),rich:"+".concat(i)}:{plain:i,rich:i}},[u,c,r,a]),w=(0,O.useCallback)(e=>{if(c){let t=IU(Object.assign({intl:u,value:e,numberFormat:a},V0({yAxisProperties:r.slice(0,-1)})));return{plain:t,rich:t}}let t=IU(Object.assign({intl:u,numberFormat:a,value:e},V0({yAxisProperties:r})));return{plain:t,rich:t}},[u,c,r,a]),k=(0,O.useCallback)((e,t,n)=>{var i;let o=r;c&&(o=(null==(i=r[r.length-1])?void 0:i.key)===t?r.slice(-1):r.slice(0,-1));let l=V0({yAxisProperties:o}),s=IU(Object.assign(Object.assign({intl:u,value:e,numberFormat:a},l),{formattingType:null!=n?n:l.formattingType}));return{plain:s,rich:s}},[u,c,r,a]),S=(0,O.useCallback)(e=>{var n;let r=null!=(n=null==t?void 0:t.dataType)?n:{type:gA.Text};if(Array.isArray(e))return((e,t,n,r)=>{let i;return{plain:i=[gA.WeeklyDateRange,gA.WeeklyDateRangeWithYear].includes(t.type)?"".concat(V1({intl:e,value:n,formattingType:t.type===gA.WeeklyDateRange?gA.DayMonth:gA.Date})," – ").concat(V1({intl:e,value:(0,z.f)(fi(r),6),formattingType:t.type===gA.WeeklyDateRange?gA.DayMonth:gA.Date})):"".concat(V1({intl:e,value:n,formattingType:t.type})," – ").concat(V1({intl:e,value:r,formattingType:t.type})),rich:i}})(u,r,e[0],e[1]);let i=V1({intl:u,value:dQ(r.type)?Vq(e):e,formattingType:r.type,currency:r.type===gA.Currency?r.iso:void 0});return{plain:i,rich:i}},[null==t?void 0:t.dataType,u]),P=(0,O.useCallback)(e=>{if(!t||!n)return d(e);let r=n.dataType,i=V$({intl:u,value:e,numberFormat:a,formattingType:r.type,currency:r.type===gA.Currency?r.iso:void 0});return{plain:i,rich:i}},[t,a,d,u,n]);return{formatBubbleSizeValue:(0,O.useCallback)(e=>{var t;if(!i)return{plain:"",rich:""};let n=V1({intl:u,value:e,formattingType:null!=(t=i.dataType.type)?t:gA.Decimal});return{plain:n,rich:n}},[u,i]),formatTopAxisTickLabel:p,formatBottomAxisTickLabel:p,formatLeftAxisTickLabel:h,formatRightAxisTickLabel:g,formatTooltipXValue:f,formatTooltipYValue:m,formatTooltipGroupValue:y,formatTooltipLabelValue:x,formatTooltipAlphaValue:b,formatXGoalValue:C,formatYGoalValue:v,formatAverageLineValue:j,formatDataLabel:A,formatStackTotalValue:w,formatMetric:k,formatTrend:(0,O.useCallback)(e=>fO({intl:u,value:e}),[u]),formatMetricLabel:S,formatSeriesLabel:P}})({yAxisProperties:A,xAxisProperties:j,sizeProperty:w,labelProperty:ed,vizType:v,numberFormat:R,comboPlotAxisCount:ep.comboPlotAxisCount}),ek=V6({bottomAxisLabel:ef,chartFormatters:ew,isEditable:l,leftAxisLabel:em,onBottomAxisLabelChange:c,onLeftAxisLabelChange:p,onRightAxisLabelChange:d,onTopAxisLabelChange:u,reverseCrossAxisPosition:s,rightAxisLabel:ey,topAxisLabel:eg}),eS=V8({aestheticMappings:eb,backgroundColor:E,comboPlotAxisCount:_,curveType:o,data:eC,highlightStyle:I,lineThickness:H,plotEffect:D,pointSize:V,showPoints:Z,treatEmptyValues:G,vizType:v}),eP=h&&(0,g.jsx)(VF,{type:h,plotEffect:D,comboPlotAxisCount:ep.comboPlotAxisCount,highlightStyle:I,backgroundColor:E}),eL=Fe({vizType:v,xGoalValue:f,parsedXGoalValue:eA,yGoalValue:m,chartFormatters:ew,customGoalLineLabel:y}),eM=Ft({seriesKey:M,chartFormatters:ew,highlightStyle:I,aestheticMappings:eb,data:eC}),eO=Fn({pointAnnotationsAddonProps:n,annotationsAddonProps:r,flags:ep,chartFormatters:ew,vizType:v,isInteractive:a,xType:ej,isEditable:l,dataContainsPercentages:gz(e=>"dataContainsPercentages"in e.computedConfig&&e.computedConfig.dataContainsPercentages),numberFormat:R,highlightStyle:I,disableTooltips:gz(e=>e.appearance.disableTooltips)}),eT=V4({chartFormatters:ew,aestheticMappings:eb,data:eC,headlineMetric:k,headlineMetricComparisonValue:S,headlineMetricSize:P,highlightStyle:I,backgroundColor:E,vizType:v,comboPlotType:X});return(0,g.jsx)(IC,{vizType:v,addons:[...t,...eO],aestheticMappings:eb,averageLine:eM,axes:ek,chartSummary:eT,comboPlotAxisCount:ep.comboPlotAxisCount,curveType:null!=o?o:"linear",data:eC,fillTypeRange:b,font:B,footerContent:U,formatSeriesLabel:ew.formatSeriesLabel,getDataPointId:Fr,goalLines:eL,highlightStyle:I,lineTypeRange:C,options:Fi(ep,v),originLines:(0,g.jsx)(Id,{}),percentageValueStrategy:"funnel"===v?"divide-by-max-value":void 0,plot:eS,textScale:F,titleContent:W,trendline:eP,vizPalette:x,xGoalValue:eA,yGoalValue:m,flipAxes:el})},V4=e=>{let{chartFormatters:t,headlineMetric:n,headlineMetricComparisonValue:r,headlineMetricSize:i,highlightStyle:o,backgroundColor:l,vizType:a,aestheticMappings:s,data:u,comboPlotType:c}=e;return(0,g.jsx)(E$,{stat:n,comparisonValue:r,metricSize:i,formatTrend:t.formatTrend,formatMetric:t.formatMetric,formatMetricLabel:t.formatMetricLabel,formatSeriesLabel:t.formatSeriesLabel,formatBubbleSizeValue:t.formatBubbleSizeValue,highlightStyle:o,backgroundColor:l,vizType:a,comboPlotType:c,aestheticMappings:s,data:u})},V6=e=>{let{isEditable:t,topAxisLabel:n,rightAxisLabel:r,bottomAxisLabel:i,leftAxisLabel:o,reverseCrossAxisPosition:l,onTopAxisLabelChange:a,onRightAxisLabelChange:s,onBottomAxisLabelChange:u,onLeftAxisLabelChange:c,chartFormatters:d}=e;return(0,g.jsx)(Iu,{topLabel:n,formatTopLabel:d.formatTopAxisTickLabel,onTopLabelChange:t?a:void 0,rightLabel:r,formatRightLabel:d.formatRightAxisTickLabel,onRightLabelChange:t?s:void 0,bottomLabel:i,formatBottomLabel:d.formatBottomAxisTickLabel,onBottomLabelChange:t?u:void 0,leftLabel:o,formatLeftLabel:d.formatLeftAxisTickLabel,onLeftLabelChange:t?c:void 0,reverseCrossAxisPosition:l})},V8=e=>{let{vizType:t,aestheticMappings:n,backgroundColor:r,curveType:i,data:o,highlightStyle:l,lineThickness:a,plotEffect:s,pointSize:u,showPoints:c,treatEmptyValues:d,comboPlotAxisCount:p}=e;switch(t){case"line":case"areaStacked":return(0,g.jsx)(TL,{vizType:t,x:n.x,y:n.y,group:n.group,curveType:i,plotEffect:s,highlightStyle:l,backgroundColor:r,lineThickness:a,treatEmptyValues:d,showPoints:c});case"scatter":return(0,g.jsx)(Dg,{group:n.group,plotEffect:s,highlightStyle:l,backgroundColor:r,pointSize:u});case"bubble":return(0,g.jsx)(Dm,{group:n.group,plotEffect:s,highlightStyle:l,backgroundColor:r});case"combo":return(0,g.jsx)(TQ,{data:o,x:n.x,y:n.y,group:n.group,curveType:i,plotEffect:s,highlightStyle:l,backgroundColor:r,lineThickness:a,comboPlotAxisCount:p,showPoints:c});case"waterfall":return(0,g.jsx)(Dy,{x:n.x,plotEffect:s});case"heatmap":return(0,g.jsx)(T3,{data:o,alpha:n.alpha,plotEffect:s});case"mekko":return(0,g.jsx)(Dx,{});default:return(0,g.jsx)(TU,{vizType:t,x:n.x,y:n.y,group:n.group,shouldShowDropoff:"funnel"===t,plotEffect:s,backgroundColor:r})}},Fe=e=>{let{vizType:t,xGoalValue:n,parsedXGoalValue:r,yGoalValue:i,chartFormatters:o,customGoalLineLabel:l}=e;return(0,g.jsx)(VI,{vizType:t,xGoalValue:r,yGoalValue:i,formatXGoalValue:()=>o.formatXGoalValue(null!=n?n:null),formatYGoalValue:o.formatYGoalValue,customGoalLineLabel:null!=l?l:void 0})},Ft=e=>{let{seriesKey:t,data:n,aestheticMappings:r,chartFormatters:i,highlightStyle:o}=e;return null===t?null:(0,g.jsx)(E8,{data:n,y:r.y,group:r.group,seriesKey:t,formatLabel:i.formatAverageLineValue,highlightStyle:o})},Fn=e=>{var t,n,r,i;let o,{pointAnnotationsAddonProps:l,annotationsAddonProps:a,flags:s,vizType:u,isInteractive:c,xType:d,chartFormatters:p,isEditable:h,dataContainsPercentages:f,numberFormat:m,highlightStyle:y,disableTooltips:x}=e,b=[],C=null!=(t=null==l?void 0:l.annotations)?t:[],v={annotations:C,formatGroupValue:p.formatTooltipGroupValue,formatLabelValue:p.formatTooltipLabelValue,formatXValue:p.formatTooltipXValue,formatYValue:p.formatTooltipYValue,formatAlphaValue:p.formatTooltipAlphaValue,shouldShowTrend:dq(d)||"funnel"===u,xType:d,highlightStyle:y};return l&&(b.push(Tf(Object.assign(Object.assign({},l),{tooltipOptions:v,isEditable:h}))),b.push((i={isEditable:h,isDefaultVisible:null!=(n=s.shouldShowDataLabels)&&n,vizType:u,annotations:C,getDataPointId:l.getDataPointId,formatLabel:p.formatDataLabel,showPercentage:s.showPercentageLabels&&!f,numberFormat:m},{id:"data-labels",render:()=>(0,g.jsx)(Pv,Object.assign({},i))}))),b.push((o={isDefaultVisible:null!=(r=s.showStackTotals)&&r,formatTotalValue:p.formatStackTotalValue},{id:"stack-totals",render:()=>(0,g.jsx)(PD,Object.assign({},o))})),a&&b.push(O3(a)),c&&!x&&b.push(SP(v)),b},Fr=e=>String(e[Vz]),Fi=(e,t)=>({withHorizontalGridLines:"heatmap"!==t&&e.hasGridLines,withVerticalGridLines:"heatmap"!==t&&"waterfall"!==t&&"mekko"!==t&&e.hasGridLines,shouldStartFromZero:e.shouldStartFromZero,customYAxisStartFrom:e.customYAxisStartFrom,customYAxisEndAt:e.customYAxisEndAt,supportsRotatedTicks:!0,useLogScale:e.useLogScale,hideCrossAxis:e.hideCrossAxis,hideMainAxis:e.hideMainAxis,customLegendPosition:e.legendPosition,comboPlotAxisCount:e.comboPlotAxisCount}),Fo=(e,t,n)=>{var r;if(dq(e)&&"string"==typeof t)try{let e=null==(r=pD(t,n))?void 0:r.dateFormat;if(!e)return null;return Hr(t,e).toISOString()}catch(e){return null}return t},Fl=e=>{let{addons:t,pointAnnotationsAddonProps:n,annotationsAddonProps:r,chartData:i,config:o,isEditable:l,topAxisLabel:a,bottomAxisLabel:s,leftAxisLabel:u,rightAxisLabel:c,onTopAxisLabelChange:d,onBottomAxisLabelChange:p,onLeftAxisLabelChange:h,onRightAxisLabelChange:f,vizPalette:m,fillTypeRange:y,lineTypeRange:x,xGoalValue:b,yGoalValue:C,customGoalLineLabel:v,averageLineSeriesKey:j,shouldShowDataLabels:A,plotEffect:w,highlightStyle:k,backgroundColor:S,lineThickness:P,pointSize:L,textScale:M,font:O,numberFormat:T,titleContent:D,footerContent:I,treatEmptyValues:E,comboPlotAxisCount:H,customYAxisEndAt:V,customYAxisStartFrom:F,hasGridLines:B,hideCrossAxis:z,hideMainAxis:R,legendPosition:Y,shouldStartFromZero:G,showPercentageLabels:W,showPoints:U,showStackTotals:N,sortBars:K,trendType:Z,useLogScale:X,isInteractive:_,flipAxes:Q}=e;switch(o.type){case"bar":case"barStacked":case"barStackedFill":case"column":case"columnStacked":case"columnStackedFill":case"line":case"areaStacked":case"funnel":case"combo":case"scatter":case"bubble":case"mekko":case"heatmap":case"waterfall":return(0,g.jsx)(V9,{addons:t,annotationsAddonProps:r,averageLineSeriesKey:j,backgroundColor:S,bottomAxisLabel:s,chartData:i,comboPlotType:o.comboPlotType,comboPlotAxisCount:H,curveType:["line","areaStacked","combo"].includes(o.type)?o.curveType:void 0,customGoalLineLabel:v,customYAxisEndAt:V,customYAxisStartFrom:F,fillTypeRange:y,font:O,footerContent:I,hasGridLines:B,headlineMetric:o.headlineMetric,headlineMetricComparisonValue:o.headlineMetricComparisonValue,headlineMetricSize:o.headlineMetricSize,hideCrossAxis:z,hideMainAxis:R,highlightStyle:k,isEditable:l,isInteractive:_,leftAxisLabel:u,legendPosition:Y,lineThickness:P,lineTypeRange:x,locale:o.locale,numberFormat:T,onBottomAxisLabelChange:p,onLeftAxisLabelChange:h,onRightAxisLabelChange:f,onTopAxisLabelChange:d,plotEffect:w,pointSize:L,reverseCrossAxisPosition:o.reverseCrossAxisPosition,rightAxisLabel:c,shouldStartFromZero:G,showPercentageLabels:W,showPoints:U,showStackTotals:N,sortBars:K,textScale:M,titleContent:D,topAxisLabel:a,treatEmptyValues:E,trendType:Z,useLogScale:X,vizPalette:m,vizType:o.type,pointAnnotationsAddonProps:n,shouldShowDataLabels:A,xAxisProperties:o.xAxisProperties,xGoalValue:b,yAxisProperties:o.yAxisProperties,yGoalValue:C,sizeProperty:"bubble"===o.type?o.sizeProperty:void 0,labelProperty:"scatter"===o.type||"bubble"===o.type?o.labelProperty:void 0,flipAxes:Q});case"pie":case"donut":{let e=o.labelProperty,a=o.valueProperty;return(0,g.jsx)(VC,{vizType:o.type,addons:t,annotationsAddonProps:r,backgroundColor:S,chartData:i,font:O,footerContent:I,headlineMetric:o.headlineMetric,headlineMetricSize:o.headlineMetricSize,highlightStyle:k,isEditable:l,isInteractive:_,labelProperty:e,legendPosition:Y,numberFormat:T,plotEffect:w,shouldShowCategoryLabels:o.showCategoryLabels,shouldShowDataLabels:A,showPercentageLabels:o.showPercentageLabels,textScale:M,titleContent:D,totalPosition:o.pieTotalPosition,valueProperty:a,vizPalette:m,pointAnnotationsAddonProps:n})}case"table":return(0,g.jsx)(Vj,{chartData:i,columns:o.columns,footerContent:I,numberFormat:T,titleContent:D})}},Fa=(0,O.forwardRef)((e,t)=>{var n;let{appearanceVariant:r,sizing:i,footerContent:o,isEditable:l=!0,hasBorder:a=!0,isExport:s,isInteractive:u=!0,onResize:c,renderTitle:d=e=>(0,g.jsx)(Vu,Object.assign({},e)),toolbar:p,zoom:h,disableAnimation:f=!1}=e,m=Hx(),y=(0,O.useRef)(null),x=gY(),b=gz(e=>e.annotations),v=gz(e=>e.appearance.theme),j=gz(e=>e.appearance.palette),A=gz(e=>e.appearance.textScale),w=gz(e=>e.appearance.font),k=gz(e=>e.numberFormat),S=gz(e=>e.computedConfig.comboPlotAxisCount),P=gz(e=>a?e.appearance.borderStroke:0),L=gz(e=>e.backgroundColor),M=gz(e=>{var t;return null!=(t=e.computedConfig.lineThickness)?t:void 0}),T=gz(e=>{var t;return null!=(t=e.computedConfig.pointSize)?t:void 0}),D=gz(e=>e.titleDocument),I=gz(e=>e.chartData),E=gz(e=>e.computedConfig),H=gz(e=>e.vizPalette),V=gz(e=>e.fillTypes),F=gz(e=>e.lineTypes),B=gz(e=>e.theme),z=gz(e=>"average"===e.computedConfig.presetPowerUp?e.computedConfig.averageLineSeriesKey:null),R=gz(e=>e.appearance.disableAnimation),Y=(0,O.useMemo)(()=>dh.includes(E.type),[E.type]),G=E.customPowerUp,W=g5(),U=gz(e=>W&&"goal"===G?e.computedConfig.xGoalValue:null),N=gz(e=>"goal"===G?e.computedConfig.yGoalValue:"custom"===G&&e.computedConfig.customLineLabel?e.computedConfig.customLineValue:null),K=gz(e=>"goal"===G?e.computedConfig.customGoalLineLabel:"custom"===G?e.computedConfig.customLineLabel:null),Z=gz(e=>"trendline"===e.computedConfig.presetPowerUp?e.computedConfig.trendLineType||"linear":void 0),X=gz(e=>{var t;return"trendline"===e.computedConfig.presetPowerUp?"fade-color":null!=(t=e.appearance.highlightStyle)?t:cW}),_=l?e=>{m(t=>({annotations:t.annotations.filter(t=>!uy(t)&&e.id!==t.id)}))}:void 0,Q=l?e=>{m(t=>({annotations:t.annotations.map(t=>t.id===e.id?Object.assign({},e):t)}))}:void 0,J=(e=>{let{isEditable:t,zoom:n,flipAxes:r}=e,i=gz(e=>e.annotations.filter(O7)),o=Hx(),l=(0,C.A)(o,100),a=H8(),s=(0,O.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"text",dimensions:Object.assign(Object.assign({},((e,t,n,r)=>{let i=t,o=n,l=0;for(;;){if(l++>100)return{x:t,y:n};if(!e.some(e=>{if("text"!==e.config.type)return!1;let{x:t,y:n}=e.config.dimensions;return .01>Math.abs(t-i)&&.01>Math.abs(n-o)}))return{x:i,y:o};i+=.005,o+=.05,i+r>1&&(i=0),o>1&&(o=0)}})(i.annotations,e,t,n)),{width:n}),content:{type:"doc",content:[{type:"paragraph",content:r?[{type:"text",text:r}]:[]}]}}}]}))},[o]),u=(0,O.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"arrow",start:{x:e,y:t},end:{x:n,y:r},attributes:{color:jv("arrowStroke"),thickness:"medium",startArrowheadStyle:"none",lineStyle:"solid",endArrowheadStyle:"line-arrow",stickerStyle:!1}}}]}))},[o]),c=(0,O.useCallback)((e,t)=>{o(n=>({annotations:[...n.annotations,{id:crypto.randomUUID(),config:{type:"difference-arrow",start:pp(e),end:pp(t),attributes:{type:"relative-difference",color:null,size:"small"}}}]}))},[o]),d=(0,O.useCallback)((e,t,n,r)=>{o(i=>({annotations:[...i.annotations,{id:crypto.randomUUID(),config:{type:"shape",shape:"rectangle",fillColor:jv("shapeFill"),fillOpacity:.25,strokeWidth:0,x:e,y:t,width:n,height:r,order:"below"}}]}))},[o]),p=(0,O.useCallback)((e,t)=>{o(n=>({annotations:n.annotations.map(n=>n.id===e&&"shape"===n.config.type?Object.assign(Object.assign({},n),{config:Object.assign(Object.assign({},n.config),t)}):n)}))},[o]),h=(0,O.useCallback)(e=>{let t=i.find(t=>t.id===e);t&&o(e=>{switch(t.config.type){case"text":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{dimensions:Object.assign(Object.assign({},t.config.dimensions),{x:t.config.dimensions.x+.03,y:t.config.dimensions.y+.06})})})]};case"arrow":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{start:{x:t.config.start.x+.03,y:t.config.start.y+.04},end:{x:t.config.end.x+.03,y:t.config.end.y+.04}})})]};case"shape":return{annotations:[...e.annotations,Object.assign(Object.assign({},t),{id:crypto.randomUUID(),config:Object.assign(Object.assign({},t.config),{x:t.config.x+.04,y:t.config.y+.04})})]};case"difference-arrow":return e}})},[i,o]),g=(0,O.useCallback)(e=>{o(t=>({annotations:t.annotations.filter(t=>t.id!==e)}))},[o]),f=(0,O.useCallback)((e,t,n,r,i)=>{l(o=>({annotations:o.annotations.map(o=>o.id===e&&"arrow"===o.config.type?Object.assign(Object.assign({},o),{config:Object.assign(Object.assign({},o.config),{start:{x:t,y:n},end:{x:r,y:i}})}):o)}))},[l]),m=e=>(t,n,r)=>{o(i=>({annotations:i.annotations.map(i=>i.id===t&&i.config.type===e?Object.assign(Object.assign({},i),{config:Object.assign(Object.assign({},i.config),{attributes:Object.assign(Object.assign({},i.config.attributes),{[n]:r})})}):i)}))},y=m("arrow"),x=m("difference-arrow"),b=(e,t)=>{l(n=>({annotations:n.annotations.map(n=>"text"!==n.config.type||n.id!==e?n:t(n))}))};return{annotations:i,onAddShape:d,onShapeAttributesUpdate:p,onAddTextAnnotation:s,onAddArrow:u,onAddDifferenceArrow:c,onDuplicate:h,onDelete:g,onArrowPointsUpdate:f,onArrowAttributeUpdate:y,onDragTextAnnotation:(e,t,n)=>{b(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{dimensions:Object.assign(Object.assign({},e.config.dimensions),{x:t,y:n})})}))},onResizeTextAnnotation:(e,t,n,r)=>{b(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{dimensions:Object.assign(Object.assign({},e.config.dimensions),{x:t,y:n,width:r})})}))},onTextEdit:(e,t)=>{b(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),{content:t})}))},onTextAttributeUpdate:(e,t)=>{b(e,e=>Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},e.config),t)}))},getConnectedDataPointIds:e=>({start:pd(e.config.start),end:pd(e.config.end)}),onDifferenceArrowConnect:(e,t,n)=>{try{o(r=>({annotations:r.annotations.map(r=>r.id===e&&"difference-arrow"===r.config.type?Object.assign(Object.assign({},r),{config:Object.assign(Object.assign({},r.config),{start:pp(t),end:pp(n)})}):r)}))}catch(e){}},onDifferenceArrowAttributeUpdate:x,isEditable:t,zoom:n,plotEffect:gz(e=>"neon"===e.appearance.theme?"neon":void 0),seriesColorOptions:a,flipAxes:r}})({isEditable:l,zoom:h,flipAxes:Y}),q=gz(e=>"neon"===e.appearance.theme?"neon":void 0),$=(0,O.useCallback)((e,t)=>H6(y.current,e,t||B.values.textPrimary),[B.values.textPrimary]),{handleTopAxisLabelChange:ee,handleBottomAxisLabelChange:et,handleLeftAxisLabelChange:en,handleRightAxisLabelChange:er,topAxisLabel:ei,bottomAxisLabel:eo,leftAxisLabel:el,rightAxisLabel:ea}=(e=>{let t=Hx(),n=n=>{if(e)return e=>{t(t=>({visualisationConfig:Object.assign(Object.assign({},t.visualisationConfig),{[n]:e})}))}};return{topAxisLabel:gz(e=>e.computedConfig.topAxisLabel),bottomAxisLabel:gz(e=>e.computedConfig.bottomAxisLabel),leftAxisLabel:gz(e=>e.computedConfig.leftAxisLabel),rightAxisLabel:gz(e=>e.computedConfig.rightAxisLabel),handleTopAxisLabelChange:n("topAxisLabel"),handleBottomAxisLabelChange:n("bottomAxisLabel"),handleLeftAxisLabelChange:n("leftAxisLabel"),handleRightAxisLabelChange:n("rightAxisLabel")}})(l),es=(()=>{let e=(()=>{let e=gz(e=>e.ref);return(0,O.useCallback)(t=>{var n;let r=null==(n=e.current.computedProperties.categoricalProperties.find(e=>!1!==e.isHidden))?void 0:n.key;if(r){let n=e.current.data[t];return null==n?void 0:n[r]}},[e])})(),t=Hx(),n=gz(e=>e.computedConfig.type),r=gz(e=>{var t;return null!=(t=e.appearance.highlightStyle)?t:cW}),i=gz(e=>e.annotations);return(0,O.useMemo)(()=>{var o;let l=e=>{t(t=>({annotations:((e,t)=>{let n=e.find(e=>!uy(e)&&um(e)&&um(t)&&e.propertyKey===t.propertyKey&&e.rowIndex===t.rowIndex);return n?e.map(e=>e===n?Object.assign(Object.assign({},e),t):e):[...e,t]})(t.annotations,e)}))},a=e=>{t(t=>({annotations:((e,t)=>{let n=e.filter(uy),r=pp(t.id);return n.filter(e=>{switch(e.config.highlight){case"data-point":return pd(e)!==t.id;case"x-value":return e.rowIndex!==r.rowIndex;case"series":return e.propertyKey!==r.propertyKey}})})(t.annotations,e)}))};return[(o={annotations:i,getDataPointId:pd,onAnnotate:l,onRemoveHighlight:a,highlightStyle:r,getRowCategoricalValue:e,stickers:{"thumbs-up":(0,g.jsx)(Tl,{sticker:"thumbs-up"}),"thumbs-down":(0,g.jsx)(Tl,{sticker:"thumbs-down"}),"clapping-hands":(0,g.jsx)(Tl,{sticker:"clapping-hands"}),"grinning-face":(0,g.jsx)(Tl,{sticker:"grinning-face"}),rocket:(0,g.jsx)(Tl,{sticker:"rocket"})}},{id:"annotations-menu",render:()=>(0,g.jsx)(k2,Object.assign({},o))}),Pq({onHighlight:l,onRemoveHighlight:a,highlightStyle:r,getRowCategoricalValue:e,vizType:n})]},[r,e,i,n,t])})(),eu=pl(w),{defaultLegendPosition:ec}=SD();return(0,g.jsx)(ms,{theme:B,children:(0,g.jsx)(jk,{children:(0,g.jsx)(em.x,{reducedMotion:f||R?"always":"user",children:(0,g.jsx)(bN.Provider,{value:$,children:(0,g.jsx)(H2.Root,{ref:g3([y,t]),onResize:c,textScale:A,font:eu,appearanceVariant:r,borderStrokeWidth:P,isExport:s,borderStyles:x,backgroundColor:L,vizType:E.type,isEditable:l,appearanceTheme:v,appearancePalette:j,sizing:i,children:(0,g.jsx)(H2.Content,{toolbar:p,children:(0,g.jsx)(H9,{isEditable:l,chartData:I,config:E,children:(0,g.jsx)(ex.Bc,{skipDelayDuration:0,children:(0,g.jsx)(Fl,{isInteractive:u,addons:l?es:[],annotationsAddonProps:J,averageLineSeriesKey:z,backgroundColor:L,showPoints:E.showPoints,bottomAxisLabel:null!=eo?eo:void 0,chartData:I,comboPlotAxisCount:S,config:E,customGoalLineLabel:K,customYAxisEndAt:E.customYAxisEndAt,customYAxisStartFrom:E.customYAxisStartFrom,fillTypeRange:V,font:eu,footerContent:null!=o?o:(0,g.jsx)(Vl,{isEditable:l}),hasGridLines:E.hasGridLines,hideCrossAxis:E.hideCrossAxis,hideMainAxis:E.hideMainAxis,highlightStyle:X,isEditable:l,leftAxisLabel:null!=el?el:void 0,legendPosition:null!=(n=E.legendPosition)?n:ec,lineThickness:M,lineTypeRange:F,numberFormat:k,onBottomAxisLabelChange:et,onLeftAxisLabelChange:en,onRightAxisLabelChange:er,onTopAxisLabelChange:ee,plotEffect:q,pointSize:T,rightAxisLabel:null!=ea?ea:void 0,shouldShowDataLabels:E.showDataLabels,shouldStartFromZero:E.shouldStartFromZero,showPercentageLabels:E.showPercentageLabels,showStackTotals:E.showStackTotals,sortBars:E.sortBars,textScale:A,titleContent:d({isEditable:l,titleDocument:D,onChange:e=>m({titleDocument:e})}),treatEmptyValues:E.treatEmptyValues,topAxisLabel:null!=ei?ei:void 0,trendType:Z,useLogScale:E.useLogScale,vizPalette:H,pointAnnotationsAddonProps:{isEditable:l,annotations:b,onUpdate:Q,onDelete:_,getDataPointId:pd,highlightStyle:X,flipAxes:Y},xGoalValue:U,yGoalValue:N,flipAxes:Y})})})})})})})})})});Fa.displayName="Graph"}}]); //# sourceMappingURL=8e04e354-30d36b2b114543e6.js.map